From 9157f807cc9a8a0aa5c68de572bff230dd7e2a49 Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Mon, 14 Nov 2016 18:19:27 +0100 Subject: dropdown ui Signed-off-by: Robin Appelman --- settings/js/authtoken_view.js | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) (limited to 'settings/js/authtoken_view.js') diff --git a/settings/js/authtoken_view.js b/settings/js/authtoken_view.js index 7ba3ce0b924..20fe5235eb0 100644 --- a/settings/js/authtoken_view.js +++ b/settings/js/authtoken_view.js @@ -29,21 +29,19 @@ '' + '' + '{{name}}' - + '
' - + '' - + '
' - + '
' + '' + '{{lastActivity}}' - + '' + + '' + + '{{#if showMore}}{{/if}}' + + '' + '' + ''; @@ -111,6 +109,7 @@ viewData.lastActivity = OC.Util.relativeModifiedDate(ts); viewData.lastActivityTime = OC.Util.formatDate(ts, 'LLL'); viewData.canScope = token.get('type') === 1; + viewData.showMore = viewData.canScope || viewData.canDelete; // preserve title for cases where we format it further viewData.title = viewData.name; @@ -217,7 +216,7 @@ var $el = $(el); $el.on('click', 'a.icon-delete', _.bind(_this._onDeleteToken, _this)); - $el.on('click', 'a.icon-settings', _.bind(_this._onConfigureToken, _this)); + $el.on('click', '.icon-more', _.bind(_this._onConfigureToken, _this)); $el.on('change', 'input.filesystem', _.bind(_this._onSetTokenScope, _this)); }); -- cgit v1.2.3