From 0d2f4c3f2c5f202e6a96a80d52e38ac985029036 Mon Sep 17 00:00:00 2001 From: jelveh Date: Wed, 10 Dec 2025 19:44:04 -0800 Subject: [PATCH] Add window options to feedback and account modals --- src/gui/src/UI/Dashboard/UIDashboard.js | 23 ++++++++++++++++++++--- src/gui/src/UI/UIWindowFeedback.js | 1 + 2 files changed, 21 insertions(+), 3 deletions(-) diff --git a/src/gui/src/UI/Dashboard/UIDashboard.js b/src/gui/src/UI/Dashboard/UIDashboard.js index 635c39321..0234e1751 100644 --- a/src/gui/src/UI/Dashboard/UIDashboard.js +++ b/src/gui/src/UI/Dashboard/UIDashboard.js @@ -172,6 +172,13 @@ async function UIDashboard (options) { UIWindowSaveAccount({ send_confirmation_code: false, default_username: window.user.username, + window_options: { + backdrop: true, + close_on_backdrop_click: true, + parent_center: true, + stay_on_top: true, + has_head: false, + }, }); }, }); @@ -211,8 +218,10 @@ async function UIDashboard (options) { reload_on_success: true, send_confirmation_code: false, window_options: { - has_head: true, - stay_on_top: true, + has_head: false, + backdrop: true, + close_on_backdrop_click: true, + parent_center: true, }, }); }, @@ -236,7 +245,15 @@ async function UIDashboard (options) { { html: i18n('contact_us'), onClick: async function () { - UIWindowFeedback(); + UIWindowFeedback({ + window_options: { + backdrop: true, + close_on_backdrop_click: true, + parent_center: true, + stay_on_top: true, + has_head: false, + }, + }); }, }, '-', diff --git a/src/gui/src/UI/UIWindowFeedback.js b/src/gui/src/UI/UIWindowFeedback.js index 644b48516..6de3c1fcb 100644 --- a/src/gui/src/UI/UIWindowFeedback.js +++ b/src/gui/src/UI/UIWindowFeedback.js @@ -67,6 +67,7 @@ async function UIWindowQR (options) { height: 'auto', dominant: true, show_in_taskbar: false, + ...options.window_options, onAppend: function (this_window) { $(this_window).find('.feedback-message').get(0).focus({ preventScroll: true }); },