remove branding for subscribed users (#424)

* removebrandingfor subscribed users

* backend  changes, test

* fix test  name

* fix disable branding

* Fix linting

---------

Co-authored-by: Julien Nahum <julien@nahum.net>
This commit is contained in:
Favour Olayinka
2024-05-29 11:03:41 +01:00
committed by GitHub
parent 0cb7f86d93
commit 68b610bc15
7 changed files with 99 additions and 1 deletions

View File

@@ -69,6 +69,7 @@ function initUpdatedForm() {
watch(form, (form) => {
if (form?.value) {
initUpdatedForm()
}
})

View File

@@ -99,7 +99,7 @@ onMounted(() => {
formStore.loadAll(workspace.value.id)
}
form.value = initForm({ workspace_id: workspace.value?.id }, true)
form.value = initForm({ workspace_id: workspace.value?.id, no_branding: workspace.value?.is_pro }, true)
formInitialHash.value = hash(JSON.stringify(form.value.data()))
if (route.query.template !== undefined && route.query.template) {
const template = templatesStore.getByKey(route.query.template)