summaryrefslogtreecommitdiffstats
path: root/apps/files_external/js
diff options
context:
space:
mode:
authorJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2018-02-22 13:09:06 +0100
committerJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2018-02-22 15:45:32 +0100
commit0cc520f3a0a91f9b316f973ff8877c8fc4bae7b5 (patch)
tree96e025007567546e07a25e5f8fe6ad6dd2ba8810 /apps/files_external/js
parent3d2b3a13099a7949297543fe1950164897fcdb2e (diff)
downloadnextcloud-server-0cc520f3a0a91f9b316f973ff8877c8fc4bae7b5.tar.gz
nextcloud-server-0cc520f3a0a91f9b316f973ff8877c8fc4bae7b5.zip
Changed config saving feedback design
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to 'apps/files_external/js')
-rw-r--r--apps/files_external/js/settings.js11
1 files changed, 6 insertions, 5 deletions
diff --git a/apps/files_external/js/settings.js b/apps/files_external/js/settings.js
index bb34bc4ebc2..211740c5646 100644
--- a/apps/files_external/js/settings.js
+++ b/apps/files_external/js/settings.js
@@ -1230,22 +1230,23 @@ MountConfigListView.prototype = _.extend({
*/
updateStatus: function($tr, status, message) {
var $statusSpan = $tr.find('.status span');
- $statusSpan.removeClass('loading-small success indeterminate error');
+ $statusSpan.removeClass();
+ console.log($tr, status, message);
switch (status) {
case null:
// remove status
break;
case StorageConfig.Status.IN_PROGRESS:
- $statusSpan.addClass('loading-small');
+ $statusSpan.attr('class', 'icon-loading-small');
break;
case StorageConfig.Status.SUCCESS:
- $statusSpan.addClass('success');
+ $statusSpan.attr('class', 'success icon-checkmark-white');
break;
case StorageConfig.Status.INDETERMINATE:
- $statusSpan.addClass('indeterminate');
+ $statusSpan.attr('class', 'indeterminate icon-info-white');
break;
default:
- $statusSpan.addClass('error');
+ $statusSpan.attr('class', 'error icon-error-white');
}
$statusSpan.attr('data-original-title', (typeof message === 'string') ? message : '');
},