mirror of
https://github.com/pinry/pinry.git
synced 2025-11-18 02:40:40 +01:00
Feature: PinEdit works well
This commit is contained in:
committed by
Isaac Bythewood
parent
bb4522829d
commit
a7670892f0
@@ -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?',
|
||||
|
||||
Reference in New Issue
Block a user