only show the new/existing template when creating is actually allowed

This commit is contained in:
Mikhail Epifanov
2025-04-11 08:21:36 +02:00
parent 278342f3f0
commit 121d2471a7

View File

@@ -37,7 +37,7 @@
containerActive: '', containerActive: '',
}" }"
> >
<template #option="{ option }"> <template #option="{ option }" v-if="props.allowCreate">
<div class="d-flex align-center justify-space-between w-100"> <div class="d-flex align-center justify-space-between w-100">
<span>{{ option[itemLabel] }}</span> <span>{{ option[itemLabel] }}</span>
<v-chip size="x-small" :color="option.__CREATE__ ? 'success' : 'primary'" class="ml-2"> <v-chip size="x-small" :color="option.__CREATE__ ? 'success' : 'primary'" class="ml-2">