1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 |
// showing a dialog this.$store.commit('showDialog',{ type: "confirm", // confirm or alert, when alert, ok and cancel buttons are not shown on dialog title: "Confirm Deletion", message: "Are you sure you want to delete this group?", okCb: ()=>{ // do things when ok is click }, cancelCb: ()=>{ // do hings when cancel is click } }); // updating breadcrumbs // label parameter is the label to show on breadcrumbs // name parameter is the vue name route this.$store.commit('setBreadcrumbs',[ {label:'Users',name:'users.list'}, {label:'Groups',name:''}, ]); // showing a snackbar this.$store.commit('showSnackbar',{ duration: 3000, // duration in milliseconds, defaults to 3000 message: 'You message here.', color: 'success', // values can be success,error,info,warning }); // showing & hiding the global loader this.$store.commit('showLoader'); this.$store.commit('hideLoader'); |