diff --git a/public/js/app.js b/public/js/app.js
index c82cc11..7c854f7 100644
--- a/public/js/app.js
+++ b/public/js/app.js
@@ -8,7 +8,7 @@ Vue.component('nav-bar', {
-
+
$
@@ -47,6 +47,9 @@ Vue.component('nav-bar', {
.then(response => {
this.subpedido = response.data.data;
});
+ },
+ toggleChismosa(){
+ Event.$emit("toggle-chismosa");
}
}, mounted() {
axios.get("/subpedidos/obtener_sesion").then(response => {
diff --git a/public/js/chismosa.js b/public/js/chismosa.js
index 7fa6f79..c1c64b4 100644
--- a/public/js/chismosa.js
+++ b/public/js/chismosa.js
@@ -1,6 +1,6 @@
Vue.component('chismosa', {
template: `
-
+
@@ -39,6 +39,7 @@ Vue.component('chismosa', {
subpedido: {
productos:[]
},
+ visible: false
}
},
computed: {
@@ -69,6 +70,9 @@ Vue.component('chismosa', {
Event.$on('sync-subpedido', () => {
this.fetchSubpedido();
});
+ Event.$on('toggle-chismosa', () => {
+ this.visible = !this.visible;
+ });
}
});
diff --git a/resources/views/chismosa.blade.php b/resources/views/chismosa.blade.php
deleted file mode 100644
index 2727d7b..0000000
--- a/resources/views/chismosa.blade.php
+++ /dev/null
@@ -1,15 +0,0 @@
-@extends('layouts.app')
-
-@section('stylesheets')
-
-@endsection
-
-@section('content')
-
-
-@endsection
-
-@section('scripts')
-
-
-@endsection
diff --git a/resources/views/productos.blade.php b/resources/views/productos.blade.php
index 906384a..0f6a1e6 100644
--- a/resources/views/productos.blade.php
+++ b/resources/views/productos.blade.php
@@ -5,6 +5,7 @@
@endsection
@section('content')
+
@@ -12,4 +13,5 @@
@section('scripts')
+
@endsection