From bf6f64b1ad3c6678fa27fb12de4dd001890c803a Mon Sep 17 00:00:00 2001 From: Sam <51686767+samuveth@users.noreply.github.com> Date: Tue, 28 Nov 2023 13:06:09 +0700 Subject: [PATCH 1/3] fix: Validate space settings on proposal creation (#4403) Co-authored-by: Wan <495709+wa0x6e@users.noreply.github.com> --- src/components/SpaceCreateWarnings.vue | 7 +++++++ src/views/SpaceCreate.vue | 8 +++++++- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/src/components/SpaceCreateWarnings.vue b/src/components/SpaceCreateWarnings.vue index bd32ebf9..329491b5 100644 --- a/src/components/SpaceCreateWarnings.vue +++ b/src/components/SpaceCreateWarnings.vue @@ -5,6 +5,7 @@ const props = defineProps<{ space: ExtendedSpace; validationFailed: boolean; isValidAuthor: boolean; + isValidSpace: boolean; validationName: string; containsShortUrl: boolean; }>(); @@ -43,6 +44,12 @@ const strategySymbolsString = computed(() => {
+ + Proposal creation is blocked due to invalid space settings. Please contact + a space admin or if you are an admin head over to the settings page and + save them again. + + { resetForm(); } }); + +onMounted(() => populateForm(props.space));