From 9a3447cd6e26728f8eae32d43c5dda6df14fd06a Mon Sep 17 00:00:00 2001 From: pilloumatou Date: Fri, 16 May 2025 13:22:14 +0200 Subject: [PATCH] find keyboard page in BDD and link to the button keyboard in the dashboard page --- src/app/components/spb2aug/spb2aug.component.ts | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/app/components/spb2aug/spb2aug.component.ts b/src/app/components/spb2aug/spb2aug.component.ts index 9547ff279..35ecda532 100644 --- a/src/app/components/spb2aug/spb2aug.component.ts +++ b/src/app/components/spb2aug/spb2aug.component.ts @@ -205,7 +205,17 @@ export class Spb2augComponent implements OnInit { LexicInfos: [{default: true}], ImageID: (label) !== null ? label : '', } - ], [{ID: 'click', ActionList: [{ID: 'display', Options: []}, {ID: 'say', Options: []}]}]) + ], [{ID: 'click', ActionList: [{ID: 'display', Options: []}, {ID: 'say', Options: []}]}]); + if(label !== null){ + if((label.toLowerCase() == "clavier" || label.toLowerCase() == "keyboard") && (currentPage.UniquePageId == "2" || currentPage.PageType == 3)){ + console.log("clavier x 0"); + const pageSetProperties = this.db.prepare('SELECT DefaultKeyboardPageUniqueId FROM PageSetProperties'); + pageSetProperties.step(); + let defaultKeyboardPageUniqueId = pageSetProperties.getAsObject().DefaultKeyboardPageUniqueId; + gridElement.Type = {GoTo: String(defaultKeyboardPageUniqueId)}; + pageSetProperties.free(); + } + } } else { gridElement = new GridElement(buttonUniqueId, 'button',