aboutsummaryrefslogtreecommitdiffstats
path: root/settings/src/components
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2019-09-25 09:16:51 +0200
committerRoeland Jago Douma <roeland@famdouma.nl>2019-09-25 10:12:23 +0200
commit17a6bb95c25afd94df3c80665ea8fd2eda302543 (patch)
tree9ec39385f59fbd26c286107bf2f31076dd5776e2 /settings/src/components
parentc99fcd63f8762233bb6867c4f44cc637808e4a83 (diff)
downloadnextcloud-server-17a6bb95c25afd94df3c80665ea8fd2eda302543.tar.gz
nextcloud-server-17a6bb95c25afd94df3c80665ea8fd2eda302543.zip
Fix apptoken creation
Seems there was a small bug in #15936 This inverts the check and add the property Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'settings/src/components')
-rw-r--r--settings/src/components/AuthToken.vue2
-rw-r--r--settings/src/components/AuthTokenSection.vue4
2 files changed, 5 insertions, 1 deletions
diff --git a/settings/src/components/AuthToken.vue b/settings/src/components/AuthToken.vue
index ef54b6d2d2f..fb5a331b72e 100644
--- a/settings/src/components/AuthToken.vue
+++ b/settings/src/components/AuthToken.vue
@@ -60,7 +60,7 @@
<!-- TODO: add text/longtext with some description -->
{{ t('settings', 'Rename') }}
</ActionButton>
-
+
<!-- revoke & wipe -->
<template v-if="token.canDelete">
<template v-if="token.type !== 2">
diff --git a/settings/src/components/AuthTokenSection.vue b/settings/src/components/AuthTokenSection.vue
index 7ddca568590..c53256102d3 100644
--- a/settings/src/components/AuthTokenSection.vue
+++ b/settings/src/components/AuthTokenSection.vue
@@ -65,6 +65,10 @@
type: Array,
required: true,
},
+ canCreateToken: {
+ type: Boolean,
+ required: true
+ }
},
components: {
AuthTokenSetupDialogue,