summaryrefslogtreecommitdiffstats
path: root/apps/files_external
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
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')
-rw-r--r--apps/files_external/css/settings.scss (renamed from apps/files_external/css/settings.css)10
-rw-r--r--apps/files_external/js/settings.js11
-rw-r--r--apps/files_external/templates/settings.php2
3 files changed, 11 insertions, 12 deletions
diff --git a/apps/files_external/css/settings.css b/apps/files_external/css/settings.scss
index 7aa7ab1a6b0..a92ae242ddf 100644
--- a/apps/files_external/css/settings.css
+++ b/apps/files_external/css/settings.scss
@@ -18,9 +18,11 @@
#externalStorage td.status > span {
display: inline-block;
- height: 16px;
- width: 16px;
+ height: 28px;
+ width: 28px;
vertical-align: text-bottom;
+ border-radius: 50%;
+ cursor: pointer;
}
td.mountPoint, td.backend { width:160px; }
@@ -78,10 +80,6 @@ td.mountPoint, td.backend { width:160px; }
top: 3px;
}
-#externalStorage td.status .success {
- border-radius: 50%;
-}
-
#userMountingBackends {
padding-left: 25px;
}
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 : '');
},
diff --git a/apps/files_external/templates/settings.php b/apps/files_external/templates/settings.php
index ac5b0d01a15..98498eb2c35 100644
--- a/apps/files_external/templates/settings.php
+++ b/apps/files_external/templates/settings.php
@@ -110,7 +110,7 @@
<?php endif; ?>
>
<td class="status">
- <span></span>
+ <span title="<?php p($l->t('Click to recheck the configuration')); ?>"></span>
</td>
<td class="mountPoint"><input type="text" name="mountPoint" value=""
placeholder="<?php p($l->t('Folder name')); ?>">