From ebebbf783349e5d6354fcaa16c5aa3a507b7f6fa Mon Sep 17 00:00:00 2001 From: Teeh Amaral Date: Tue, 2 Jan 2024 19:34:21 -0300 Subject: [PATCH] fix: template phrase and remove stay button --- templates/flows/flow_editor.haml | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/templates/flows/flow_editor.haml b/templates/flows/flow_editor.haml index f187d4fe032..f040351e35d 100644 --- a/templates/flows/flow_editor.haml +++ b/templates/flows/flow_editor.haml @@ -229,13 +229,7 @@ var sessionTimeoutModal = document.getElementById("session-timeout"); sessionTimeoutModal.addEventListener("temba-button-clicked", function(event){ - if(!event.detail.button.secondary) { - config.mutable = false; - showFlowEditor(document.getElementById('rp-flow-editor'), config); - } else { - location.reload(); - } - sessionTimeoutModal.open = false; + location.reload(); }); document.addEventListener("editor-session-timeout", function () { sessionTimeoutModal.classList.remove("hide"); @@ -509,9 +503,9 @@ .p-6.body = immutable_alert - %temba-dialog.hide#session-timeout(header='{{_("Session Time is Run Out")|escapejs}}' primaryButtonName='{{_("Stay")|escapejs}}' cancelButtonName='{{_("Refresh")|escapejs}}') + %temba-dialog.hide#session-timeout(header='{{_("Session timed out")|escapejs}}' primaryButtonName='{{_("Refresh")|escapejs}}') .p-6.body - = _("You have been inactive for a while and your editing session is over. You could stay on that page without the ability to do changes or reload the page to start a new editing session.") + = _("Your session has timed out. Refresh the page to reload.") #shadow.pb-5.-mb-5 #grid.h-full