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"
|
event: "modelChange"
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
localValue: {
|
|
||||||
get() {
|
|
||||||
return this.property.value
|
|
||||||
},
|
|
||||||
set(value) {
|
|
||||||
this.$emit("input", {...this.property,value})
|
|
||||||
}
|
|
||||||
},
|
|
||||||
prettyDescription() {
|
prettyDescription() {
|
||||||
var d = this.property.description ? this.property.description : this.property.name
|
var d = this.property.description ? this.property.description : this.property.name
|
||||||
if (this.property.unit_name) {
|
if (this.property.unit_name) {
|
||||||
|
|
|
@ -13,12 +13,6 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<style scoped>
|
<style scoped>
|
||||||
.taglist {
|
|
||||||
display: flex;
|
|
||||||
flex-wrap: wrap;
|
|
||||||
gap: 0.3rem;
|
|
||||||
padding: .25rem;
|
|
||||||
}
|
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
@ -58,7 +52,6 @@ export default {
|
||||||
},
|
},
|
||||||
set(value) {
|
set(value) {
|
||||||
this.$emit("input", value);
|
this.$emit("input", value);
|
||||||
console.log("set", value);
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
splicedValue() {
|
splicedValue() {
|
||||||
|
|
|
@ -62,7 +62,7 @@
|
||||||
<div class="card-body">
|
<div class="card-body">
|
||||||
<ul>
|
<ul>
|
||||||
<li v-for="policy in availability_policies.sort()" :key="policy.id">
|
<li v-for="policy in availability_policies.sort()" :key="policy.id">
|
||||||
{{ policy }}
|
{{ policy.text }}
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -47,6 +47,16 @@
|
||||||
</option>
|
</option>
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</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">
|
<div class="mb-3">
|
||||||
<label for="image" class="form-label">Image</label>
|
<label for="image" class="form-label">Image</label>
|
||||||
<combined-file-field :item_files="item.files" create
|
<combined-file-field :item_files="item.files" create
|
||||||
|
|
Loading…
Reference in a new issue