resolved created peripheral

This commit is contained in:
2025-11-29 20:06:04 +01:00
parent 2dc6f4a38a
commit d1fda9f075
8 changed files with 112 additions and 42 deletions

View File

@@ -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)

View File

@@ -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",