mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 01:36:30 +00:00
default password warning: fix close button, don't crash if dialog is recreated (on feed tree reload etc)
This commit is contained in:
@@ -221,6 +221,9 @@ define(["dojo/_base/declare"], function (declare) {
|
||||
if (App.getInitParam("is_default_pw")) {
|
||||
console.warn("user password is at default value");
|
||||
|
||||
if (dijit.byId("defaultPasswordDlg"))
|
||||
dijit.byId("defaultPasswordDlg").destroyRecursive();
|
||||
|
||||
const dialog = new dijit.Dialog({
|
||||
title: __("Your password is at default value"),
|
||||
href: "backend.php?op=dlg&method=defaultpasswordwarning",
|
||||
|
||||
Reference in New Issue
Block a user