From e07617210636b4cf9065fa7a393219e5d4af3577 Mon Sep 17 00:00:00 2001 From: Georg Krause Date: Wed, 9 Mar 2022 15:34:24 +0100 Subject: [PATCH] Fix bug that prevents users from creating a new oauth application (#1706) --- changes/changelog.d/1706.bugfix | 1 + front/src/components/auth/ApplicationForm.vue | 4 ++-- front/src/components/auth/ApplicationNew.vue | 6 +++--- 3 files changed, 6 insertions(+), 5 deletions(-) create mode 100644 changes/changelog.d/1706.bugfix diff --git a/changes/changelog.d/1706.bugfix b/changes/changelog.d/1706.bugfix new file mode 100644 index 000000000..8fe39d285 --- /dev/null +++ b/changes/changelog.d/1706.bugfix @@ -0,0 +1 @@ +Fix bug that prevents users from creating a new oauth application (#1706) diff --git a/front/src/components/auth/ApplicationForm.vue b/front/src/components/auth/ApplicationForm.vue index bfbcd5808..1f8c1ccb6 100644 --- a/front/src/components/auth/ApplicationForm.vue +++ b/front/src/components/auth/ApplicationForm.vue @@ -126,12 +126,12 @@ import TranslationsMixin from '@/components/mixins/Translations' export default { mixins: [TranslationsMixin], props: { - app: { type: Object, required: false, default: () => { return {} } }, + app: { type: Object, required: false, default: () => { return null } }, defaults: { type: Object, required: false, default: () => { return {} } } }, data () { - const app = this.app || {} const defaults = this.defaults || {} + const app = this.app || {} return { isLoading: false, errors: [], diff --git a/front/src/components/auth/ApplicationNew.vue b/front/src/components/auth/ApplicationNew.vue index 8ffa13fe3..c01176883 100644 --- a/front/src/components/auth/ApplicationNew.vue +++ b/front/src/components/auth/ApplicationNew.vue @@ -32,9 +32,9 @@ export default { ApplicationForm }, props: { - name: { type: String, required: true }, - redirectUris: { type: String, required: true }, - scopes: { type: Array, required: true } + name: { type: String, default: '' }, + redirectUris: { type: String, default: '' }, + scopes: { type: String, default: '' } }, data () { return {