From 449324fa1c030d87577b5dc70baad9dcde78b32c Mon Sep 17 00:00:00 2001 From: Dane Everitt Date: Fri, 28 Oct 2016 15:54:57 -0400 Subject: [PATCH] Show spinner when decompressing files. --- .../views/server/js/filemanager/actions.blade.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/resources/views/server/js/filemanager/actions.blade.php b/resources/views/server/js/filemanager/actions.blade.php index 04620f2b6..3e8ea2250 100644 --- a/resources/views/server/js/filemanager/actions.blade.php +++ b/resources/views/server/js/filemanager/actions.blade.php @@ -325,6 +325,15 @@ class ActionsClass { const compPath = decodeURIComponent(nameBlock.data('path')); const compName = decodeURIComponent(nameBlock.data('name')); + swal({ + title: ' Decompressing...', + text: 'This might take a few seconds to complete.', + html: true, + allowOutsideClick: false, + allowEscapeKey: false, + showConfirmButton: false, + }); + $.ajax({ type: 'POST', url: `{{ $node->scheme }}://{{ $node->fqdn }}:{{ $node->daemonListen }}/server/file/decompress`, @@ -337,6 +346,7 @@ class ActionsClass { files: `${compPath}${compName}` }) }).done(data => { + swal.close(); Files.list(compPath); }).fail(jqXHR => { console.error(jqXHR);