do not show the read-only alert to the admin

This commit is contained in:
Régis Hanol
2014-02-13 07:56:23 -08:00
parent aff3463957
commit 38e365ea45
3 changed files with 8 additions and 2 deletions
@@ -55,7 +55,10 @@ Discourse.AdminBackupsIndexController = Ember.ArrayController.extend({
I18n.t("no_value"),
I18n.t("yes_value"),
function(confirmed) {
if (confirmed) { self._toggleReadOnlyMode(true); }
if (confirmed) {
Discourse.User.currentProp("hideReadOnlyAlert", true);
self._toggleReadOnlyMode(true);
}
}
);
} else {