Skip to content

Commit

Permalink
fix: template phrase and remove stay button
Browse files Browse the repository at this point in the history
  • Loading branch information
teehamaral committed Jan 2, 2024
1 parent c359ee1 commit ebebbf7
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions templates/flows/flow_editor.haml
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit ebebbf7

Please sign in to comment.