diff --git a/src/app/components/edition/edition.component.css b/src/app/components/edition/edition.component.css index 148ac9bbc..873bf25f9 100644 --- a/src/app/components/edition/edition.component.css +++ b/src/app/components/edition/edition.component.css @@ -235,4 +235,9 @@ .messageError { color: red; margin-left: calc(40% - 10px); -} \ No newline at end of file +} + +.messageConfirmation { + color: green; + margin-left: calc(40% - 10px); +} diff --git a/src/app/components/edition/edition.component.html b/src/app/components/edition/edition.component.html index 008c2d35f..7a0924eaa 100644 --- a/src/app/components/edition/edition.component.html +++ b/src/app/components/edition/edition.component.html @@ -40,9 +40,12 @@
- {{this.multilinguism.translate("save")}} + {{this.multilinguism.translate("validate")}}

+
+ {{this.multilinguism.translate("confirmationButtonCreated")}} +
{{this.multilinguism.translate("nameEmpty")}}
@@ -67,4 +70,4 @@ -{{this.configuration.VERSION}} \ No newline at end of file +{{this.configuration.VERSION}} diff --git a/src/app/components/edition/edition.component.ts b/src/app/components/edition/edition.component.ts index 06e63c5a2..bd3b6dd79 100644 --- a/src/app/components/edition/edition.component.ts +++ b/src/app/components/edition/edition.component.ts @@ -44,6 +44,7 @@ export class EditionComponent implements OnInit, ComponentCanDeactivate { nameEmpty = false; + isButtonBuilt:boolean = false; initialEditionState; initialdbnaryState; popstateFired = false; @@ -130,6 +131,8 @@ export class EditionComponent implements OnInit, ComponentCanDeactivate { this.indexedDBacess.update(); this.initialEditionState = Object.assign({}, this.editionService); this.initialdbnaryState = Object.assign({}, this.dbnaryService); + this.isButtonBuilt = true; + await this.router.navigate(['keyboard']); } else { this.nameEmpty = true; } diff --git a/src/assets/multilinguism.json b/src/assets/multilinguism.json index 395897cd2..88a7d6aa1 100644 --- a/src/assets/multilinguism.json +++ b/src/assets/multilinguism.json @@ -162,7 +162,7 @@ { "id" : "resetconfig", "FR": "Rétablir la configuration par défaut", "EN" : "Reset to default configuration"}, { "id" : "VoulezVousVraimentSupprimerLaGrille?", "FR" : "Voulez vous vraiment supprimer la grille?", "EN" : "Do you really want to delete the grid?"}, { "id" : "clearGrid", "FR" : "Vider la grille", "EN" : "Clear the grid"}, - { "id" : "validate", "FR" : "Valider", "EN" : "Validate"}, + { "id" : "validate", "FR" : "Valider", "EN" : "Validate"}, { "id": "Print", "FR" : "Exporter", "EN" : "Export"}, { "id": "Header", "FR" : "En-tête", "EN" : "Header"}, { "id": "Footer", "FR" : "Pied de page", "EN" : "Footer"}, @@ -375,6 +375,7 @@ { "id" : "WordNameFile", "FR": "ClavierAugCom", "EN": "GridFileAugcom"}, { "id" : "WordTitle", "FR": "Clavier Augcom", "EN": "AugCom main grid"}, { "id" : "WordFolder", "FR": "Sous Dossier", "EN": "Folder"}, + { "id" : "confirmationButtonCreated", "FR": "Bouton créé", "EN": "Button created"}, { "id" : "OpenTheFolder", "FR": "Ouvre le dossier", "EN": "Open the folder"}, { "id" : "functionDescription", "FR": "L'élément créé sera un bouton qui effectue des actions", "EN": "The element created will be a button that performs the following actions"}, { "id" : "Retour", "FR": "Retour", "EN": "Back"},