add/remove publication

This commit is contained in:
2021-06-03 17:34:01 +03:00
parent 1bb3bdb24a
commit 833995e739
2 changed files with 56 additions and 48 deletions
+3 -5
View File
@@ -100,18 +100,16 @@ export default {
methods: {
...mapMutations({
//set_url: "setInfobaseURL",
set_publication: "setInfobasePublication",
//set_publication: "setInfobasePublication",
}),
...mapActions({
set_url: "updateInfobaseURL",
}),
add_publication() {
let name = this.name;
this.set_publication({ name, publicated: true });
this.$store.dispatch("addInfobasePublication", this.name);
},
remove_publication() {
let name = this.name;
this.set_publication({ name, publicated: false });
this.$store.dispatch("removeInfobasePublication", this.name);
},
start_edit_url() {
this.url_edit = true;