remove .prevent modifiers from custom components

Signed-off-by: Maksim Sukharev <antreesy.web@gmail.com>
This commit is contained in:
Maksim Sukharev 2023-05-12 20:39:21 +02:00
parent 7166cca3aa
commit 5a4dbda23a
No known key found for this signature in database
GPG key ID: 6349D071889BD1D5
9 changed files with 18 additions and 19 deletions

View file

@ -32,7 +32,7 @@
</p>
<NcButton v-if="showLink"
type="primary"
@click.stop.prevent="handleCopyLink">
@click.stop="handleCopyLink">
{{ t('spreed', 'Copy link') }}
</NcButton>
</template>

View file

@ -32,7 +32,7 @@
<p class="danger-zone__hint">
{{ t('spreed', 'Once a conversation is left, to rejoin a closed conversation, an invite is needed. An open conversation can be rejoined at any time.') }}
</p>
<NcButton type="warning" @click.prevent.exact="leaveConversation">
<NcButton type="warning" @click="leaveConversation">
{{ t('spreed', 'Leave conversation') }}
</NcButton>
</div>
@ -44,7 +44,7 @@
{{ t('spreed', 'Permanently delete this conversation.') }}
</p>
<NcButton type="error"
@click.prevent.exact="deleteConversation">
@click="deleteConversation">
{{ t('spreed', 'Delete conversation') }}
</NcButton>
</div>
@ -56,7 +56,7 @@
{{ t('spreed', 'Permanently delete all the messages in this conversation.') }}
</p>
<NcButton type="error"
@click.prevent.exact="clearChatHistory">
@click="clearChatHistory">
{{ t('spreed', 'Delete chat messages') }}
</NcButton>
</div>

View file

@ -68,7 +68,7 @@
<div class="app-settings-subsection app-settings-subsection__buttons">
<NcButton ref="copyLinkButton"
:wide="true"
@click.prevent="handleCopyLink"
@click="handleCopyLink"
@keydown.enter="handleCopyLink">
<template #icon>
<ClipboardTextOutline />
@ -78,7 +78,7 @@
<NcButton v-if="isSharedPublicly"
:disabled="isSendingInvitations"
:wide="true"
@click.prevent="handleResendInvitations"
@click="handleResendInvitations"
@keydown.enter="handleResendInvitations">
<template #icon>
<Email />

View file

@ -48,7 +48,7 @@
<template v-if="!isSearchResult" #actions>
<NcActionButton v-if="canFavorite"
:close-after-click="true"
@click.prevent.exact="toggleFavoriteConversation">
@click="toggleFavoriteConversation">
<template #icon>
<Star v-if="item.isFavorite" :size="20" />
<Star v-else :size="20" :fill-color="'#FFCC00'" />
@ -56,12 +56,12 @@
{{ labelFavorite }}
</NcActionButton>
<NcActionButton icon="icon-clippy"
@click.stop.prevent="handleCopyLink">
@click.stop="handleCopyLink">
{{ t('spreed', 'Copy link') }}
</NcActionButton>
<NcActionButton v-if="item.unreadMessages"
:close-after-click="true"
@click.prevent.exact="markConversationAsRead">
@click="markConversationAsRead">
<template #icon>
<EyeOutline :size="16" />
</template>
@ -69,14 +69,14 @@
</NcActionButton>
<NcActionButton v-else
:close-after-click="true"
@click.prevent.exact="markConversationAsUnread">
@click="markConversationAsUnread">
<template #icon>
<EyeOffOutline :size="16" />
</template>
{{ t('spreed', 'Mark as unread') }}
</NcActionButton>
<NcActionButton :close-after-click="true"
@click.prevent.exact="showConversationSettings">
@click="showConversationSettings">
<template #icon>
<Cog :size="20" />
</template>
@ -84,7 +84,7 @@
</NcActionButton>
<NcActionButton v-if="canLeaveConversation"
:close-after-click="true"
@click.prevent.exact="leaveConversation">
@click="leaveConversation">
<template #icon>
<ExitToApp :size="16" />
</template>
@ -93,7 +93,7 @@
<NcActionButton v-if="canDeleteConversation"
:close-after-click="true"
class="critical"
@click.prevent.exact="deleteConversation">
@click="deleteConversation">
<template #icon>
<Delete :size="16" />
</template>
@ -108,7 +108,7 @@
{{ t('spreed', 'Join conversation') }}
</NcActionButton>
<NcActionButton icon="icon-clippy"
@click.stop.prevent="handleCopyLink">
@click.stop="handleCopyLink">
{{ t('spreed', 'Copy link') }}
</NcActionButton>
</template>

View file

@ -540,7 +540,6 @@ export default {
if (this?.conversationsList[0]?.token) {
this.$router.push({ name: 'conversation', params: { token: this.conversationsList[0].token } })
}
this.handleClickSearchResult()
},
scrollToConversation(token) {

View file

@ -27,7 +27,7 @@
:show-trailing-button="isSearching"
trailing-button-icon="close"
@trailing-button-click="abortSearch"
@keypress.enter.prevent="handleSubmit">
@keypress.enter="handleSubmit">
<Magnify :size="16" />
</NcTextField>
</form>

View file

@ -73,7 +73,7 @@
</NcActionButton>
<NcActionButton icon="icon-external"
:close-after-click="true"
@click.stop.prevent="handleCopyMessageLink">
@click.stop="handleCopyMessageLink">
{{ t('spreed', 'Copy message link') }}
</NcActionButton>
<NcActionButton :close-after-click="true"

View file

@ -95,7 +95,7 @@
:placeholder="placeholderText"
:aria-label="placeholderText"
@shortkey="focusInput"
@keydown.esc.prevent="handleInputEsc"
@keydown.esc="handleInputEsc"
@tribute-active-true.native="isTributePickerActive = true"
@tribute-active-false.native="isTributePickerActive = false"
@paste="handlePastedFiles"

View file

@ -25,7 +25,7 @@
<h3 v-html="displayNameLabel" />
<NcButton v-if="!isEditingUsername"
@click.prevent="handleEditUsername">
@click="handleEditUsername">
{{ t('spreed', 'Edit') }}
<template #icon>
<Pencil :size="20" />