Skip to content

Commit

Permalink
progress towards ability to associate equipment with block
Browse files Browse the repository at this point in the history
  • Loading branch information
jdbocarsly committed Feb 13, 2024
1 parent a4bf1a7 commit 5deb66b
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion webapp/src/components/datablocks/DataBlockBase.vue
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,18 @@
@click="deleteThisBlock"
/>
</div>
<div class="form-row">
<div class="form-group form-inline col-12">
<label for="equipment-select">Equipment:</label>
<ItemSelect
id="equipment-select"
class="pl-2 col-md-10 col-sm-10"
v-model="equipmentList"
multiple
:typesToQuery="['equipment']"
/>
</div>
</div>

<div
ref="datablockContent"
Expand All @@ -50,7 +62,7 @@
import { createComputedSetterForBlockField } from "@/field_utils.js";
import TinyMceInline from "@/components/TinyMceInline";
import tinymce from "tinymce/tinymce";
import ItemSelect from "@/components/ItemSelect";
import { deleteBlock, updateBlockFromServer } from "@/server_fetch_utils";
export default {
Expand All @@ -59,6 +71,7 @@ export default {
isExpanded: true,
contentMaxHeight: "none",
padding_height: 18,
equipmentList: [],
};
},
computed: {
Expand Down Expand Up @@ -147,6 +160,7 @@ export default {
},
components: {
TinyMceInline,
ItemSelect,
},
};
</script>
Expand Down

0 comments on commit 5deb66b

Please sign in to comment.