🚧 Lays ground-work for the Edit Item modal form

This commit is contained in:
Alicia Sykes
2021-10-16 15:32:18 +01:00
parent 19ba9dc16d
commit b9b9c30713
5 changed files with 111 additions and 15 deletions

View File

@@ -0,0 +1,44 @@
<template>
<modal
:name="modalName"
:resizable="true"
width="55%"
height="80%"
classes="dashy-modal edit-item"
@closed="modalClosed"
>
<span>Item Editor</span>
<input />
</modal>
</template>
<script>
import StoreKeys from '@/utils/StoreMutations';
import { modalNames } from '@/utils/defaults';
export default {
name: 'EditItem',
data() {
return {
modalName: modalNames.EDIT_ITEM,
};
},
props: {},
computed: {},
components: {},
mounted() {
this.$modal.show(modalNames.EDIT_ITEM);
},
methods: {
modalClosed() {
this.$store.commit(StoreKeys.SET_MODAL_OPEN, false);
},
},
};
</script>
<style scoped lang="scss">
@import '@/styles/style-helpers.scss';
@import '@/styles/media-queries.scss';
</style>

View File

@@ -0,0 +1,23 @@
<template>
<span>Item Editor</span>
</template>
<script>
export default {
name: 'EditSection',
data() {
return {};
},
props: {},
computed: {},
components: {},
methods: {},
};
</script>
<style scoped lang="scss">
@import '@/styles/style-helpers.scss';
@import '@/styles/media-queries.scss';
</style>