From da63af8b021afb209308f16611508ea65399f738 Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Wed, 3 Aug 2016 16:24:12 +0200 Subject: enable deleting/configuring new tokens Signed-off-by: Robin Appelman --- settings/js/authtoken_view.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'settings/js/authtoken_view.js') diff --git a/settings/js/authtoken_view.js b/settings/js/authtoken_view.js index 54561ffd1e3..7ba3ce0b924 100644 --- a/settings/js/authtoken_view.js +++ b/settings/js/authtoken_view.js @@ -81,7 +81,7 @@ var list = this.$('.token-list'); var tokens = this.collection.filter(function (token) { - return parseInt(token.get('type'), 10) === _this.type; + return token.get('type') === _this.type; }); list.html(''); @@ -110,7 +110,7 @@ var ts = viewData.lastActivity * 1000; viewData.lastActivity = OC.Util.relativeModifiedDate(ts); viewData.lastActivityTime = OC.Util.formatDate(ts, 'LLL'); - viewData.canScope = token.get('type') === '1'; + viewData.canScope = token.get('type') === 1; // preserve title for cases where we format it further viewData.title = viewData.name; -- cgit v1.2.3