stash
This commit is contained in:
parent
7512ba76da
commit
c81a179c40
4 changed files with 11 additions and 16 deletions
|
@ -85,14 +85,6 @@ export default {
|
|||
event: "modelChange"
|
||||
},
|
||||
computed: {
|
||||
localValue: {
|
||||
get() {
|
||||
return this.property.value
|
||||
},
|
||||
set(value) {
|
||||
this.$emit("input", {...this.property,value})
|
||||
}
|
||||
},
|
||||
prettyDescription() {
|
||||
var d = this.property.description ? this.property.description : this.property.name
|
||||
if (this.property.unit_name) {
|
||||
|
|
|
@ -13,12 +13,6 @@
|
|||
</template>
|
||||
|
||||
<style scoped>
|
||||
.taglist {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 0.3rem;
|
||||
padding: .25rem;
|
||||
}
|
||||
</style>
|
||||
|
||||
<script>
|
||||
|
@ -58,7 +52,6 @@ export default {
|
|||
},
|
||||
set(value) {
|
||||
this.$emit("input", value);
|
||||
console.log("set", value);
|
||||
}
|
||||
},
|
||||
splicedValue() {
|
||||
|
|
|
@ -62,7 +62,7 @@
|
|||
<div class="card-body">
|
||||
<ul>
|
||||
<li v-for="policy in availability_policies.sort()" :key="policy.id">
|
||||
{{ policy }}
|
||||
{{ policy.text }}
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
|
|
@ -47,6 +47,16 @@
|
|||
</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="mb-3">
|
||||
<label for="availablity_policy" class="form-label">Availablity Policy</label>
|
||||
<select class="form-select" id="availablity_policy" name="availablity_policy"
|
||||
v-model="item.availability_policy">
|
||||
<option v-for="policy in availability_policies" :value="policy.slug"
|
||||
:selected="policy.slug === item.availability_policy">
|
||||
{{ policy.text }}
|
||||
</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="mb-3">
|
||||
<label for="image" class="form-label">Image</label>
|
||||
<combined-file-field :item_files="item.files" create
|
||||
|
|
Loading…
Reference in a new issue