diff options
Diffstat (limited to 'iridescence')
-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> |