generated from thinkode/modelRepository
resolved created peripheral
This commit is contained in:
@@ -7,9 +7,9 @@
|
||||
import { UpdatePeripheralSettings, GetPeripheralSettings, RemovePeripheral, AddPeripheral, CreatePeripheral } from "../../../wailsjs/go/main/App";
|
||||
import RoundedButton from "../General/RoundedButton.svelte";
|
||||
|
||||
// Create a new peripheral
|
||||
// Create the peripheral to the project
|
||||
function createPeripheral(peripheral){
|
||||
// Add the peripheral to the project (backend)
|
||||
// Create the peripheral to the project (backend)
|
||||
CreatePeripheral(peripheral)
|
||||
.catch((error) => {
|
||||
console.log("Unable to create the peripheral: " + error)
|
||||
|
||||
@@ -48,6 +48,7 @@
|
||||
"projectSavedToast": "The project has been saved",
|
||||
"projectSaveErrorToast": "Unable to save the project:",
|
||||
"addPeripheralErrorToast": "Unable to add this peripheral to project",
|
||||
"createPeripheralErrorToast": "Unable to create this peripheral",
|
||||
"removePeripheralErrorToast": "Unable to remove this peripheral from project",
|
||||
"os2lPeripheralCreatedToast": "Your OS2L peripheral has been created",
|
||||
"os2lPeripheralCreateErrorToast": "Unable to create the OS2L peripheral",
|
||||
|
||||
Reference in New Issue
Block a user