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 @@
text-field="displayName"
value-field="id"
:state="
v$.resourceForm.license.$dirty
v$.resourceForm.license.$dirty && resourceForm.license
? !v$.resourceForm.license.$error
: null
"
......@@ -223,7 +223,7 @@
@change="setLicense(selectedLicense)"
>
<template #first>
<option :value="null" disabled>
<option :value="null">
{{ $t("form.resource.resourceLicenseSelect") }}
</option>
</template>
......@@ -486,6 +486,8 @@ export default defineComponent({
) as LicenseObject;
this.resourceForm.license = license;
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