mirror of
https://github.com/TandoorRecipes/recipes.git
synced 2026-01-08 07:38:26 -05:00
only show the new/existing template when creating is actually allowed
This commit is contained in:
@@ -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">
|
||||||
|
|||||||
Reference in New Issue
Block a user