From 159013d2956dd3207934a66dd86c098d51415c71 Mon Sep 17 00:00:00 2001 From: Tobias Klika Date: Sun, 6 Feb 2022 23:47:17 +0100 Subject: [PATCH] fixes ui-pick/ui-form --- zero.Backoffice.UI/app/components/ui-form.vue | 6 +++--- zero.Backoffice.UI/app/components/ui-pick.vue | 7 ++++++- zero.Backoffice.UI/app/styles/Settings/_accent.scss | 4 ++-- 3 files changed, 11 insertions(+), 6 deletions(-) diff --git a/zero.Backoffice.UI/app/components/ui-form.vue b/zero.Backoffice.UI/app/components/ui-form.vue index 5b81e908..235cb077 100644 --- a/zero.Backoffice.UI/app/components/ui-form.vue +++ b/zero.Backoffice.UI/app/components/ui-form.vue @@ -116,12 +116,12 @@ // loads data on creation of the form async load(promise) { - this.setState('loading'); + this.loadingState = 'loading'; const response = await promise(); if (!response.success) { - this.setState('error'); + this.loadingState = 'error'; if (response.errors) { this.loadingError = response.errors[0].message; @@ -130,7 +130,7 @@ } this.canEdit = true; - this.setState('default'); + this.loadingState = 'default'; this.$nextTick(() => { this.$emit('loaded', this); diff --git a/zero.Backoffice.UI/app/components/ui-pick.vue b/zero.Backoffice.UI/app/components/ui-pick.vue index 31bec64b..b086a6ed 100644 --- a/zero.Backoffice.UI/app/components/ui-pick.vue +++ b/zero.Backoffice.UI/app/components/ui-pick.vue @@ -44,7 +44,7 @@
-