mirror of
https://github.com/HeyPuter/puter.git
synced 2026-08-28 17:07:16 +00:00
Add window options to feedback and account modals
This commit is contained in:
@@ -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,
|
||||
},
|
||||
});
|
||||
},
|
||||
},
|
||||
'-',
|
||||
|
||||
@@ -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 });
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user