add/remove publication
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user