Merge pull request #13891 from nextcloud/remove-external-failure-notification

Remove warning in case of external storage error
This commit is contained in:
Morris Jobke 2019-01-30 11:54:20 +01:00 committed by GitHub
commit fda74eb9b9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -288,24 +288,6 @@ OCA.Files_External.StatusManager = {
};
ajaxQueue.push(queueElement);
});
var rolQueue = new OCA.Files_External.StatusManager.RollingQueue(ajaxQueue, 4, function () {
if (!self.notificationHasShown) {
var showNotification = false;
$.each(self.mountStatus, function (key, value) {
if (value.status === 1) {
self.notificationHasShown = true;
showNotification = true;
}
});
if (showNotification) {
OC.Notification.show(t('files_external', 'Some of the configured external mount points are not connected. Please click on the red row(s) for more information'),
{type: 'error'}
);
}
}
});
rolQueue.runQueue();
}
});
},