fix custom domain clear (#488)
Co-authored-by: Julien Nahum <julien@nahum.net>
This commit is contained in:
parent
3a658ab7e2
commit
4cf2ef1718
|
|
@ -27,6 +27,7 @@
|
||||||
<select-input
|
<select-input
|
||||||
v-if="customDomainAllowed"
|
v-if="customDomainAllowed"
|
||||||
v-model="form.custom_domain"
|
v-model="form.custom_domain"
|
||||||
|
:clearable="true"
|
||||||
:disabled="customDomainOptions.length <= 0"
|
:disabled="customDomainOptions.length <= 0"
|
||||||
:options="customDomainOptions"
|
:options="customDomainOptions"
|
||||||
name="type"
|
name="type"
|
||||||
|
|
@ -111,6 +112,10 @@ export default {
|
||||||
this.form.seo_meta[keyname] = null
|
this.form.seo_meta[keyname] = null
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
if (this.form.custom_domain && !this.workspace.custom_domains.find((item) => { return item === this.form.custom_domain })) {
|
||||||
|
this.form.custom_domain = null
|
||||||
|
}
|
||||||
},
|
},
|
||||||
methods: {},
|
methods: {},
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue