aboutsummaryrefslogtreecommitdiffstats
path: root/apps/settings/src/components/AuthTokenSection.vue
diff options
context:
space:
mode:
authorJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2021-07-22 13:21:25 +0200
committerJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2021-07-22 13:21:25 +0200
commit7ca81f360f42341b2941798374160d362507ba26 (patch)
treea3d4701504898e6c864980b989b78fc88ed92fbd /apps/settings/src/components/AuthTokenSection.vue
parent49b490ce6d1d726aa1c335b0b5c440d8a3cae5ff (diff)
downloadnextcloud-server-7ca81f360f42341b2941798374160d362507ba26.tar.gz
nextcloud-server-7ca81f360f42341b2941798374160d362507ba26.zip
Fix eslint and update bundles
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to 'apps/settings/src/components/AuthTokenSection.vue')
-rw-r--r--apps/settings/src/components/AuthTokenSection.vue3
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/settings/src/components/AuthTokenSection.vue b/apps/settings/src/components/AuthTokenSection.vue
index 42369917f9d..2624433eca2 100644
--- a/apps/settings/src/components/AuthTokenSection.vue
+++ b/apps/settings/src/components/AuthTokenSection.vue
@@ -94,6 +94,7 @@ export default {
return axios.post(this.baseUrl, data)
.then(resp => resp.data)
.then(tap(() => console.debug('app token created')))
+ // eslint-disable-next-line vue/no-mutating-props
.then(tap(data => this.tokens.push(data.deviceToken)))
.catch(err => {
console.error.bind('could not create app password', err)
@@ -142,6 +143,7 @@ export default {
deleteToken(token) {
console.debug('deleting app token', token)
+ // eslint-disable-next-line vue/no-mutating-props
this.tokens = this.tokens.filter(t => t !== token)
return axios.delete(this.baseUrl + '/' + token.id)
@@ -152,6 +154,7 @@ export default {
OC.Notification.showTemporary(t('core', 'Error while deleting the token'))
// Restore
+ // eslint-disable-next-line vue/no-mutating-props
this.tokens.push(token)
})
},