Feature: PinEdit works well

This commit is contained in:
winkidney
2019-12-07 20:59:03 +08:00
committed by Isaac Bythewood
parent bb4522829d
commit a7670892f0
5 changed files with 86 additions and 31 deletions

View File

@@ -22,7 +22,7 @@
custom-size="mdi-24px">
</b-icon>
</span>
<span class="icon-container" v-if="isOwner">
<span class="icon-container" v-if="isOwner" @click="editPin">
<b-icon
type="is-light"
icon="pencil"
@@ -90,6 +90,17 @@ export default {
},
});
},
editPin() {
const props = {
username: this.currentUsername,
existedPin: this.pin,
isEdit: true,
};
modals.openPinEdit(
this,
props,
);
},
deletePin() {
this.$buefy.dialog.confirm({
message: 'Delete this Pin?',