diff options
author | Adam T. Carpenter <atc@53hor.net> | 2020-09-15 17:41:06 -0400 |
---|---|---|
committer | Adam T. Carpenter <atc@53hor.net> | 2020-09-15 17:41:06 -0400 |
commit | ec16cc36d593b6b026689004479a6712b63f85ed (patch) | |
tree | 57a1488747ae0586164a5686474f5d6b47688fcc /iridescence/src/components | |
parent | 253dceb5591c5a39122f1439a721ce5b0b3fc97c (diff) | |
download | theglassyladies-ec16cc36d593b6b026689004479a6712b63f85ed.tar.xz theglassyladies-ec16cc36d593b6b026689004479a6712b63f85ed.zip |
started new product modal
Diffstat (limited to 'iridescence/src/components')
-rw-r--r-- | iridescence/src/components/admin/NewProduct.vue | 14 | ||||
-rw-r--r-- | iridescence/src/components/admin/NewProductModal.vue | 24 |
2 files changed, 34 insertions, 4 deletions
diff --git a/iridescence/src/components/admin/NewProduct.vue b/iridescence/src/components/admin/NewProduct.vue index b8d8dd2..5119031 100644 --- a/iridescence/src/components/admin/NewProduct.vue +++ b/iridescence/src/components/admin/NewProduct.vue @@ -3,15 +3,21 @@ <button class="button is-primary"> + Add New </button> + <NewProductModal v-if="modalEnabled"></NewProductModal> </div> </template> <script> +import NewProductModal from "./NewProductModal.vue"; export default { name: "AddNewProduct", - props: {}, - watch: {}, - computed: {}, - methods: {} + components: { + NewProductModal + }, + data: function() { + return { + modalEnabled: true + }; + } }; </script> diff --git a/iridescence/src/components/admin/NewProductModal.vue b/iridescence/src/components/admin/NewProductModal.vue new file mode 100644 index 0000000..228ee4c --- /dev/null +++ b/iridescence/src/components/admin/NewProductModal.vue @@ -0,0 +1,24 @@ +<template> + <div class="modal is-active" id="newProductModal"> + <div class="modal-background"></div> + <div class="modal-card"> + <header class="modal-card-head"> + <p class="modal-card-title">Modal title</p> + <button class="delete" aria-label="close"></button> + </header> + <section class="modal-card-body"> + <!-- Content ... --> + </section> + <footer class="modal-card-foot"> + <button class="button is-success">Save changes</button> + <button class="button">Cancel</button> + </footer> + </div> + </div> +</template> + +<script> +export default { + name: "NewProductModal" +}; +</script> |