Skip to content

Commit 534f06e

Browse files
authored
Fixed success toast in inventory led's (#111)
1 parent ad93e56 commit 534f06e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/views/Overview/OverviewInventory.vue

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,14 @@
2929

3030
<script>
3131
import OverviewCard from './OverviewCard';
32+
import BVToastMixin from '@/components/Mixins/BVToastMixin';
3233
3334
export default {
3435
name: 'Inventory',
3536
components: {
3637
OverviewCard,
3738
},
39+
mixins: [BVToastMixin],
3840
computed: {
3941
systems() {
4042
let systemData = this.$store.getters['system/systems'][0];
@@ -50,6 +52,7 @@ export default {
5052
toggleIdentifyLedSwitch(state) {
5153
this.$store
5254
.dispatch('system/changeIdentifyLedState', state)
55+
.then((message) => this.successToast(message))
5356
.catch(({ message }) => this.errorToast(message));
5457
},
5558
},

0 commit comments

Comments
 (0)