From 7a38a6951af74b933d93cd711de9e2ee533b2d3f Mon Sep 17 00:00:00 2001 From: liuch Date: Tue, 26 Jul 2022 01:03:50 +0300 Subject: [PATCH] four dialog boxes in web UI got titles --- js/domains.js | 2 +- js/list.js | 2 +- js/logs.js | 2 +- js/settings.js | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/js/domains.js b/js/domains.js index c821466..721b3be 100644 --- a/js/domains.js +++ b/js/domains.js @@ -221,7 +221,7 @@ class DomainEditDialog extends ModalDialog { if (!params["new"]) { ba.splice(1, 0, "delete"); } - super({ buttons: ba }); + super({ title: "Domain settings", buttons: ba }); this._data = params || {}; this._content = null; this._table = null; diff --git a/js/list.js b/js/list.js index 7c54d6b..2d3919d 100644 --- a/js/list.js +++ b/js/list.js @@ -361,7 +361,7 @@ class StatusColumn extends ITableCell { class ReportListSettingsDialog extends ModalDialog { constructor(params) { - super({ buttons: [ "apply", "reset" ] }); + super({ title: "List display settings", buttons: [ "apply", "reset" ] }); this._data = params || {}; this._content = null; this._ui_data = [ diff --git a/js/logs.js b/js/logs.js index 27987d7..f1b614c 100644 --- a/js/logs.js +++ b/js/logs.js @@ -209,7 +209,7 @@ class LogsResultCell extends ITableCell { class LogItemDialog extends ModalDialog { constructor(data) { - super({ buttons: [ "close" ] }); + super({ title: "Log record", buttons: [ "close" ] }); this._data = data; this._table = null; this._res_el = null; diff --git a/js/settings.js b/js/settings.js index 6a612c7..b998e92 100644 --- a/js/settings.js +++ b/js/settings.js @@ -160,7 +160,7 @@ class Settings { class SettingEditDialog extends ModalDialog { constructor(param) { - super({ buttons: [ "ok", "close" ] }); + super({ title: "Setting dialog", buttons: [ "ok", "close" ] }); this._data = param || {}; this._content = null; this._table = null;