diff options
author | Andrew Dolgov <[email protected]> | 2021-11-14 16:12:27 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2021-11-14 16:12:27 +0300 |
commit | cf933716075ea98ec1004544734a3158ed07a577 (patch) | |
tree | e6780a33933549b774070ef7d4105d37129533d0 /js/CommonDialogs.js | |
parent | d3d3bceec9bc2307b0967b3ef6a5486a648323ae (diff) |
show safe mode warning dialog in prefs
Diffstat (limited to 'js/CommonDialogs.js')
-rw-r--r-- | js/CommonDialogs.js | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/js/CommonDialogs.js b/js/CommonDialogs.js index 4c169b026..4cfc6ec70 100644 --- a/js/CommonDialogs.js +++ b/js/CommonDialogs.js @@ -11,6 +11,21 @@ const CommonDialogs = { const dialog = dijit.byId("infoBox"); if (dialog) dialog.hide(); }, + safeModeWarning: function() { + const dialog = new fox.SingleUseDialog({ + title: __("Safe mode"), + content: `<div class='alert alert-info'> + ${__('Tiny Tiny RSS is running in safe mode. All themes and plugins are disabled. You will need to log out and back in to disable it.')} + </div> + <footer class='text-center'> + <button dojoType='dijit.form.Button' type='submit' class='alt-primary'> + ${__('Close this window')} + </button> + </footer>` + }); + + dialog.show(); + }, subscribeToFeed: function() { xhr.json("backend.php", {op: "feeds", method: "subscribeToFeed"}, |