diff options
author | Christoph Wurst <ChristophWurst@users.noreply.github.com> | 2018-08-10 09:38:27 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-08-10 09:38:27 +0200 |
commit | 3254b85c123d84276dca3c66883343d7af45a851 (patch) | |
tree | f9adf6a490b9fcec2d419b707109f16b61f07fb2 /settings/js | |
parent | 103a2c30fb29b0d0f026d56eaa58d50cb68323ed (diff) | |
parent | 4ba40385a460cba20784196b1960e4a14aa48b22 (diff) | |
download | nextcloud-server-3254b85c123d84276dca3c66883343d7af45a851.tar.gz nextcloud-server-3254b85c123d84276dca3c66883343d7af45a851.zip |
Merge pull request #10546 from nextcloud/popover-tokens
Popovermenu fix and token settings design fixes
Diffstat (limited to 'settings/js')
-rw-r--r-- | settings/js/authtoken_view.js | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/settings/js/authtoken_view.js b/settings/js/authtoken_view.js index 7f788935ac9..523d548f205 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) { |