Skip to content
Snippets Groups Projects
Commit 57635553 authored by Timothee P's avatar Timothee P :sunflower:
Browse files

add switch between delete and modify select mode

parent bf6670ef
No related branches found
No related tags found
No related merge requests found
......@@ -159,7 +159,7 @@
:key="'message-' + index"
:class="['ui', message.level ? message.level : 'info', 'message']"
>
<i class="close icon" @click="discardMessage(message)"></i>
<i class="close icon" @click="DISCARD_MESSAGE(message)"></i>
<div class="header">
<i class="info circle icon"></i> Informations
</div>
......@@ -194,8 +194,7 @@
<script>
import frag from "vue-frag";
import { mapState } from "vuex";
import { mapGetters } from "vuex";
import { mapMutations, mapState, mapGetters } from "vuex";
export default {
name: "App",
......@@ -250,6 +249,7 @@ export default {
},
methods: {
...mapMutations(['DISCARD_MESSAGE']),
logout() {
this.$store.dispatch("LOGOUT");
},
......@@ -258,10 +258,6 @@ export default {
if (e.target.closest && !e.target.closest("#menu-dropdown"))
this.menuIsOpen = false;
},
discardMessage(message) {
this.$store.commit("DISCARD_MESSAGE", message)
}
},
created() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment