mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 01:25:56 +00:00
show safe mode warning dialog in prefs
This commit is contained in:
15
js/Feeds.js
15
js/Feeds.js
@@ -278,19 +278,8 @@ const Feeds = {
|
||||
}
|
||||
|
||||
if (App.getInitParam("safe_mode")) {
|
||||
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();
|
||||
/* global CommonDialogs */
|
||||
CommonDialogs.safeModeWarning();
|
||||
}
|
||||
|
||||
// bw_limit disables timeout() so we request initial counters separately
|
||||
|
||||
Reference in New Issue
Block a user