Allow confirmation on closing reply form
This commit is contained in:
parent
b27f696d77
commit
fb87477298
11 changed files with 170 additions and 14 deletions
|
|
@ -473,6 +473,13 @@ const Status = {
|
|||
},
|
||||
toggleReplying () {
|
||||
this.$emit('interacted')
|
||||
if (this.replying) {
|
||||
this.$refs.postStatusForm.requestClose()
|
||||
} else {
|
||||
this.doToggleReplying()
|
||||
}
|
||||
},
|
||||
doToggleReplying () {
|
||||
controlledOrUncontrolledToggle(this, 'replying')
|
||||
},
|
||||
gotoOriginal (id) {
|
||||
|
|
|
|||
|
|
@ -598,13 +598,15 @@
|
|||
class="status-container reply-form"
|
||||
>
|
||||
<PostStatusForm
|
||||
ref="postStatusForm"
|
||||
class="reply-body"
|
||||
:reply-to="status.id"
|
||||
:attentions="status.attentions"
|
||||
:replied-user="status.user"
|
||||
:copy-message-scope="status.visibility"
|
||||
:subject="replySubject"
|
||||
@posted="toggleReplying"
|
||||
@posted="doToggleReplying"
|
||||
@can-close="doToggleReplying"
|
||||
/>
|
||||
</div>
|
||||
</template>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue