toast muestra que el pedido fue actualizado

This commit is contained in:
nat 2022-05-04 16:20:27 -03:00
parent c82fdeee96
commit 54e515cb7a
4 changed files with 22 additions and 1 deletions

7
public/css/animate.min.css vendored Normal file

File diff suppressed because one or more lines are too long

8
public/js/app.js vendored
View File

@ -59,7 +59,13 @@ Vue.component('nav-bar', {
cantidad: cantidad, cantidad: cantidad,
producto_id: id producto_id: id
}).then(() => { }).then(() => {
alert('subpedido actualizado'); bulmaToast.toast({
message: 'Pedido actualizado exitosamente',
duration: 1000,
type: 'is-danger',
position: 'bottom-center',
animate: { in: 'fadeIn', out: 'fadeOut' }
});
this.actualizarSubpedido(); this.actualizarSubpedido();
}); });
}); });

6
public/js/bulma-toast.min.js vendored Normal file

File diff suppressed because one or more lines are too long

View File

@ -12,9 +12,11 @@
<!-- Fonts --> <!-- Fonts -->
<script src="https://kit.fontawesome.com/9235d1c676.js" crossorigin="anonymous"></script> <script src="https://kit.fontawesome.com/9235d1c676.js" crossorigin="anonymous"></script>
<script src="{{ asset('js/bulma-toast.min.js') }}"></script>
<!-- Styles --> <!-- Styles -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bulma@0.9.3/css/bulma.min.css"> <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bulma@0.9.3/css/bulma.min.css">
<link rel="stylesheet" href="{{ asset('css/app.css') }}"> <link rel="stylesheet" href="{{ asset('css/app.css') }}">
<link rel="stylesheet" href="{{ asset('css/animate.min.css') }}">
@yield('stylesheets') @yield('stylesheets')