summaryrefslogtreecommitdiffstats
path: root/settings/js
diff options
context:
space:
mode:
authorJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2018-08-06 10:45:23 +0200
committerJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2018-08-06 10:48:07 +0200
commit4ba40385a460cba20784196b1960e4a14aa48b22 (patch)
tree53789693ca6cbdf334bd67a8abbea96d93e6c629 /settings/js
parentca54166e352f4e54887dd307bb10cc60308dbc6a (diff)
downloadnextcloud-server-4ba40385a460cba20784196b1960e4a14aa48b22.tar.gz
nextcloud-server-4ba40385a460cba20784196b1960e4a14aa48b22.zip
POpovermenu fix and token settings design fixes
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to 'settings/js')
-rw-r--r--settings/js/authtoken_view.js8
1 files changed, 7 insertions, 1 deletions
diff --git a/settings/js/authtoken_view.js b/settings/js/authtoken_view.js
index d20356b2594..3d56aefac1e 100644
--- a/settings/js/authtoken_view.js
+++ b/settings/js/authtoken_view.js
@@ -36,13 +36,17 @@
+ '<td><span class="last-activity has-tooltip" title="{{lastActivityTime}}">{{lastActivity}}</span></td>'
+ '<td class="more">'
+ '{{#if showMore}}<a class="icon icon-more"/>{{/if}}'
- + '<div class="popovermenu bubble open menu configure">'
+ + '<div class="popovermenu menu">'
+ '{{#if canScope}}'
+ + '<li><span class="menuitem">'
+ '<input class="filesystem checkbox" type="checkbox" id="{{id}}_filesystem" {{#if scope.filesystem}}checked{{/if}}/>'
+ '<label for="{{id}}_filesystem">' + t('settings', 'Allow filesystem access') + '</label><br/>'
+ + '</span></li>'
+ '{{/if}}'
+ '{{#if canDelete}}'
+ + '<li>'
+ '<a class="icon icon-delete has-tooltip" title="' + t('settings', 'Disconnect') + '">' + t('settings', 'Revoke') +'</a>'
+ + '</li>'
+ '{{/if}}'
+ '</div>'
+ '</td>'
@@ -376,11 +380,13 @@
var $target = $(event.target);
var $row = $target.closest('tr');
$row.toggleClass('active');
+ $row.find('.popovermenu').toggleClass('open');
var id = $row.data('id');
},
_hideConfigureToken: function() {
$('.token-list tr').removeClass('active');
+ $('.token-list tr .popovermenu').removeClass('open');
},
_onDeleteToken: function (event) {