Skip to content

Commit 449324f

Browse files
committed
Show spinner when decompressing files.
1 parent ac82194 commit 449324f

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

resources/views/server/js/filemanager/actions.blade.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -325,6 +325,15 @@ class ActionsClass {
325325
const compPath = decodeURIComponent(nameBlock.data('path'));
326326
const compName = decodeURIComponent(nameBlock.data('name'));
327327

328+
swal({
329+
title: '<i class="fa fa-refresh fa-spin"></i> Decompressing...',
330+
text: 'This might take a few seconds to complete.',
331+
html: true,
332+
allowOutsideClick: false,
333+
allowEscapeKey: false,
334+
showConfirmButton: false,
335+
});
336+
328337
$.ajax({
329338
type: 'POST',
330339
url: `{{ $node->scheme }}://{{ $node->fqdn }}:{{ $node->daemonListen }}/server/file/decompress`,
@@ -337,6 +346,7 @@ class ActionsClass {
337346
files: `${compPath}${compName}`
338347
})
339348
}).done(data => {
349+
swal.close();
340350
Files.list(compPath);
341351
}).fail(jqXHR => {
342352
console.error(jqXHR);

0 commit comments

Comments
 (0)