Skip to content

Commit

Permalink
ref #362 done dismiss toasts when leaving the page.
Browse files Browse the repository at this point in the history
  • Loading branch information
CharlesGrimont committed Jan 6, 2025
1 parent fedefcc commit c23b643
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 6 deletions.
2 changes: 1 addition & 1 deletion DisplayObjects/mobile/assets/i18n/en.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version_c8o": "2.1.0-beta9",
"version_c8o": "2.1.0-beta10",
"img_edit1": "Image editing",
"multiple_row_selected": "Multiple rows selected",
"progress_indicator_form_filling": "Progress indicator for application filling",
Expand Down
2 changes: 1 addition & 1 deletion DisplayObjects/mobile/assets/i18n/es.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version_c8o": "2.1.0-beta9",
"version_c8o": "2.1.0-beta10",
"img_edit1": "Edición de imágenes",
"multiple_row_selected": "Múltiples filas seleccionadas",
"progress_indicator_form_filling": "Indicador de progreso en el llenado de la aplicaciones",
Expand Down
2 changes: 1 addition & 1 deletion DisplayObjects/mobile/assets/i18n/fr.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version_c8o": "2.1.0-beta9",
"version_c8o": "2.1.0-beta10",
"img_edit1": "Édition d'images",
"multiple_row_selected": "Lignes multiples sélectionnées",
"progress_indicator_form_filling": "Témoin d’avancement dans le remplissage de l'application",
Expand Down
2 changes: 1 addition & 1 deletion DisplayObjects/mobile/assets/i18n/it.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version_c8o": "2.1.0-beta9",
"version_c8o": "2.1.0-beta10",
"img_edit1": "Modifica di immagini",
"multiple_row_selected": "Righe multiple selezionate",
"progress_indicator_form_filling": "Indicatore di avanzamento nella compilazione del applicazione",
Expand Down
7 changes: 7 additions & 0 deletions _c8oProject/mobilePages/viewerPage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3318,6 +3318,9 @@ scriptContent:
}
}
catch (e) {
if(this.local.toastErr == undefined){
this.local.toastErr = [];
}
this.c8o.log.warn("An error occured while computing variables for " + item.name + " data sources, maybe the source has still not been created");
console.error("An error occured while computing variables for " + item.name + " data sources, maybe the source has still not been created", e);
if(!this.local.published){
Expand All @@ -3337,6 +3340,7 @@ scriptContent:
]
});
toast.present();
this.local.toastErr.push(toast);
}
delete variables[va];
}
Expand Down Expand Up @@ -8313,6 +8317,9 @@ title: Visualisateur
window.removeEventListener(''pushstate'', this.local.listenerPushState);
page.restaureTitleRGAA();
window.removeEventListener(''resize'', this.local.funcListener);
this.local.toastErr?.forEach((toast)=>{
toast.dismiss();
})
resolve();
'
↓Div [ngx.components.UIDynamicElement-1620404620514]:
Expand Down
2 changes: 1 addition & 1 deletion c8oProject.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
contextTimeout: ${C8Oforms.context.timeout=60}
corsOrigin: =Origin
httpSessionTimeout: ${C8Oforms.http_session.timeout=60}
version: 2.1.0-beta9
version: 2.1.0-beta10
↓c8oforms_fs [connectors.FullSyncConnector]: 🗏 connectors/c8oforms_fs.yaml
↓c8oforms_response_fs [connectors.FullSyncConnector]: 🗏 connectors/c8oforms_response_fs.yaml
↓HTTP_connector [connectors.HttpConnector]: 🗏 connectors/HTTP_connector.yaml
Expand Down
2 changes: 1 addition & 1 deletion ngswForPWA/ngsw-config-sub-pwa.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"appData": {
"name": "Convertigo Forms Builder",
"description": "A simple and intuitive \"no code\" tool to create your personalized apps in a few clicks!",
"version": "2.1.0-beta9"
"version": "2.1.0-beta10"
},
"assetGroups": [
{
Expand Down

0 comments on commit c23b643

Please sign in to comment.