From 70235970ab1fee86aca27d28833d88da12a6bba3 Mon Sep 17 00:00:00 2001 From: nat Date: Wed, 4 May 2022 16:50:22 -0300 Subject: [PATCH] comenzamos --- public/js/app.js | 5 ++++- public/js/chismosa.js | 6 +++++- resources/views/chismosa.blade.php | 15 --------------- resources/views/productos.blade.php | 2 ++ 4 files changed, 11 insertions(+), 17 deletions(-) delete mode 100644 resources/views/chismosa.blade.php 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