From 87b24fac9c02862a1259592cd74113d4cd86d0cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Molakvo=C3=A6=20=28skjnldsv=29?= Date: Tue, 15 Aug 2017 12:04:05 +0200 Subject: Block sidebar on import MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: John Molakvoæ (skjnldsv) --- css/public/style.scss | 12 ++++++++++++ js/components/contactImport/contactImport_directive.js | 2 ++ templates/main.php | 1 + 3 files changed, 15 insertions(+) diff --git a/css/public/style.scss b/css/public/style.scss index f215af61..68abf406 100644 --- a/css/public/style.scss +++ b/css/public/style.scss @@ -1,3 +1,7 @@ +#app-navigation { + position: relative; +} + .contactdetails__header { height: 100px; padding-left: 20px; @@ -816,3 +820,11 @@ detailsitem .select2-container { background: $color-primary; transition: 500ms all ease-in-out; } +#importscreen-sidebar-block { + position: absolute; + width: 100%; + height: 100%; + background: #fff; + z-index: 500; + opacity: 0.5; +} diff --git a/js/components/contactImport/contactImport_directive.js b/js/components/contactImport/contactImport_directive.js index 29cd8c41..d8ea85e5 100644 --- a/js/components/contactImport/contactImport_directive.js +++ b/js/components/contactImport/contactImport_directive.js @@ -13,12 +13,14 @@ angular.module('contactsApp') ctrl.importText = ctrl.t.importingText; ctrl.loadingClass = 'icon-loading-small'; ctrl.importing = true; + $rootScope.importing = true; ContactService.import.call(ContactService, reader.result, file.type, ctrl.selectedAddressBook, function (progress, user) { if (progress === 1) { ctrl.importText = ctrl.t.importText; ctrl.loadingClass = 'icon-upload'; ctrl.importing = false; + $rootScope.importing = false; ImportService.importPercent = 0; ImportService.importing = false; ImportService.importedUser = ''; diff --git a/templates/main.php b/templates/main.php index d1a156b8..fdd6b581 100644 --- a/templates/main.php +++ b/templates/main.php @@ -28,6 +28,7 @@ vendor_style('select2/select2');
+
    -- cgit v1.2.3