diff --git a/src/App.vue b/src/App.vue
index 94bb4aa..2208301 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -46,6 +46,23 @@ body {
color: #2c3e50;
}
+#title-bar {
+ -webkit-app-region: drag;
+ height: 20px;
+ background: var(--primary);
+ color: white;
+ display: flex;
+ align-items: center;
+ padding: 0 10px;
+}
+
+#notification-container {
+ top: unset !important;
+ bottom: 2em !important;
+ margin-top: 6em;
+ right: 4% !important;
+}
+
nav {
padding: 30px;
@@ -83,16 +100,6 @@ label {
position: relative;
}
-#title-bar {
- -webkit-app-region: drag;
- height: 20px;
- background: var(--primary);
- color: white;
- display: flex;
- align-items: center;
- padding: 0 10px;
-}
-
.select-wrapper::after {
content: ">" !important;
}
@@ -117,12 +124,6 @@ label {
animation: slideOut var(--duration) forwards;
}
-#notification-container {
- top: unset !important;
- bottom: 2em !important;
- margin-top: 6em;
- right: 4% !important;
-}
[selectedNav="true"] {
background: white;
diff --git a/src/components/app/Intro.vue b/src/components/app/Intro.vue
index e889b0d..8844307 100644
--- a/src/components/app/Intro.vue
+++ b/src/components/app/Intro.vue
@@ -39,7 +39,7 @@ onMounted(() => {

-
Hacemos tus sueƱos
realidad
+
La fabrica de aplicaciones
Web
diff --git a/src/components/productos/ProductModal.vue b/src/components/productos/ProductModal.vue
index 7941b65..f3aaa89 100644
--- a/src/components/productos/ProductModal.vue
+++ b/src/components/productos/ProductModal.vue
@@ -1,21 +1,24 @@
{productStore.product_modal = false}">
-
+ emits('confirm', newProduct)"/>
{productStore.product_modal = false}"/>
diff --git a/src/views/HomeView.vue b/src/views/HomeView.vue
index b465861..6cd28ad 100644
--- a/src/views/HomeView.vue
+++ b/src/views/HomeView.vue
@@ -2,7 +2,7 @@
-
+
@@ -15,6 +15,7 @@ import {useUi} from "@/pinia/ui";
import {useUserStore} from "@/pinia/user";
import ProductModal from "@/components/productos/ProductModal.vue";
import {useProductStore} from "@/pinia/products";
+import {DBService, post} from "@/services/apiReq";
const ui = useUi();
const productStore = useProductStore()
@@ -42,4 +43,13 @@ const productos = ref([
function handleClick() {
ui.setCurrentMenu(null)
}
+
+async function saveProduct(product) {
+ let response = await post('/insert', {
+ table: 'productos',
+ data: product,
+ }, DBService);
+ productStore.product_modal = false;
+ await productStore.fetchProducts();
+}