Skip to content
Snippets Groups Projects
Commit e067b0c1 authored by Ashish Shetty's avatar Ashish Shetty Committed by Benedikt Heinrichs
Browse files

Fix: License can be deselected

parent b6b02c7f
No related branches found
No related tags found
2 merge requests!170Release: Sprint/2023 01 :robot:,!157Fix: License can be deselected
...@@ -214,7 +214,7 @@ ...@@ -214,7 +214,7 @@
text-field="displayName" text-field="displayName"
value-field="id" value-field="id"
:state=" :state="
v$.resourceForm.license.$dirty v$.resourceForm.license.$dirty && resourceForm.license
? !v$.resourceForm.license.$error ? !v$.resourceForm.license.$error
: null : null
" "
...@@ -223,7 +223,7 @@ ...@@ -223,7 +223,7 @@
@change="setLicense(selectedLicense)" @change="setLicense(selectedLicense)"
> >
<template #first> <template #first>
<option :value="null" disabled> <option :value="null">
{{ $t("form.resource.resourceLicenseSelect") }} {{ $t("form.resource.resourceLicenseSelect") }}
</option> </option>
</template> </template>
...@@ -486,6 +486,8 @@ export default defineComponent({ ...@@ -486,6 +486,8 @@ export default defineComponent({
) as LicenseObject; ) as LicenseObject;
this.resourceForm.license = license; this.resourceForm.license = license;
this.v$.resourceForm.license?.$touch(); this.v$.resourceForm.license?.$touch();
} else if (!id) {
this.resourceForm.license = null;
} }
}, },
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment