From b717434f133118499225d8dee2c7c7cad477992e Mon Sep 17 00:00:00 2001 From: Morris Jobke Date: Thu, 7 Feb 2019 10:15:27 +0100 Subject: [PATCH] Reintroduce status check for external storages Fixes #14022 Signed-off-by: Morris Jobke --- apps/files_external/js/statusmanager.js | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/apps/files_external/js/statusmanager.js b/apps/files_external/js/statusmanager.js index 7a3ecda76b..bd42319252 100644 --- a/apps/files_external/js/statusmanager.js +++ b/apps/files_external/js/statusmanager.js @@ -288,6 +288,17 @@ OCA.Files_External.StatusManager = { }; ajaxQueue.push(queueElement); }); + + var rolQueue = new OCA.Files_External.StatusManager.RollingQueue(ajaxQueue, 4, function () { + if (!self.notificationHasShown) { + $.each(self.mountStatus, function (key, value) { + if (value.status === 1) { + self.notificationHasShown = true; + } + }); + } + }); + rolQueue.runQueue(); } }); },