1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 14:35:55 +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:
Andrew Dolgov
2020-01-25 13:02:11 +03:00
parent 0e9e1ad112
commit 776fe4768b
2 changed files with 4 additions and 1 deletions

View File

@@ -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",