Feature: Add2Board works well

This commit is contained in:
winkidney
2019-12-07 18:08:26 +08:00
committed by Isaac Bythewood
parent a2babdf33c
commit 109d8aca9f
3 changed files with 124 additions and 1 deletions

View File

@@ -8,7 +8,7 @@
custom-size="mdi-24px">
</b-icon>
</span>
<span class="icon-container">
<span class="icon-container" @click="addToBoar">
<b-icon
type="is-light"
icon="plus-box"
@@ -35,6 +35,7 @@
<script>
import API from '../api';
import modals from '../modals';
export default {
name: 'Editor',
@@ -68,6 +69,9 @@ export default {
},
},
methods: {
addToBoar() {
modals.openAdd2Board(this, this.pin, this.currentUsername);
},
removeFromBoard() {
this.$buefy.dialog.confirm({
message: 'Remove Pin from Board?',