Skip to content

Commit 8675f27

Browse files
committed
Don't use dialog modal on upload progress
1 parent a705f4d commit 8675f27

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -420,9 +420,9 @@ const dialogFactory = (core, proc, win) => {
420420
const {translatable} = core.make('osjs/locale');
421421
const __ = translatable(translations);
422422

423-
const dialog = (name, args, cb) => core.make('osjs/dialog', name, args, {
423+
const dialog = (name, args, cb, modal = true) => core.make('osjs/dialog', name, args, {
424424
parent: win,
425-
attributes: {modal: true}
425+
attributes: {modal}
426426
}, cb);
427427

428428
const mkdirDialog = (action, currentPath) => dialog('prompt', {
@@ -452,7 +452,7 @@ const dialogFactory = (core, proc, win) => {
452452
const progressDialog = (file) => dialog('progress', {
453453
message: __('DIALOG_PROGRESS_MESSAGE', file.name),
454454
buttons: []
455-
}, () => {});
455+
}, () => {}, false);
456456

457457
const errorDialog = (error, message) => dialog('alert', {
458458
type: 'error',

0 commit comments

Comments
 (0)