Fix toast position on app init
This commit is contained in:
@@ -319,6 +319,7 @@ await new Promise((resolve) => {
|
||||
|
||||
// Configure toast library:
|
||||
toastr.options = {
|
||||
positionClass: 'toast-top-center',
|
||||
closeButton: false,
|
||||
progressBar: false,
|
||||
showDuration: 250,
|
||||
|
||||
@@ -12,7 +12,7 @@ export function showLoader() {
|
||||
loaderPopup = new Popup(`
|
||||
<div id="loader">
|
||||
<div id="load-spinner" class="fa-solid fa-gear fa-spin fa-3x"></div>
|
||||
</div>`, POPUP_TYPE.DISPLAY, null, { transparent: true, animation: 'none' });
|
||||
</div>`, POPUP_TYPE.DISPLAY, null, { transparent: true, animation: 'none', wide: true, large: true });
|
||||
|
||||
// No close button, loaders are not closable
|
||||
loaderPopup.closeButton.style.display = 'none';
|
||||
|
||||
@@ -1068,7 +1068,8 @@ function applyToastrPosition() {
|
||||
|
||||
toastr.options.positionClass = power_user.toastr_position;
|
||||
fixToastrForDialogs();
|
||||
$('#toastr_position').val(power_user.toastr_position).prop('selected', true);
|
||||
$('#toastr_position').val(power_user.toastr_position);
|
||||
$(`#toastr_position option[value="${power_user.toastr_position}"]`).prop('selected', true);
|
||||
}
|
||||
|
||||
function applyChatWidth(type) {
|
||||
|
||||
Reference in New Issue
Block a user