mirror of
https://github.com/n8n-io/n8n.git
synced 2025-03-05 20:50:17 -08:00
fix: rename non-generic click events
This commit is contained in:
parent
b207981269
commit
5d2b09fddb
|
@ -20,7 +20,7 @@
|
|||
:label="buttonText"
|
||||
:type="buttonType"
|
||||
size="large"
|
||||
@click="$emit('click', $event)"
|
||||
@click="$emit('click:button', $event)"
|
||||
/>
|
||||
<n8n-callout
|
||||
v-if="calloutText"
|
||||
|
|
|
@ -100,7 +100,7 @@ export default defineComponent({
|
|||
this.expanded = !this.expanded;
|
||||
},
|
||||
onClick(e: MouseEvent) {
|
||||
this.$emit('click', e);
|
||||
this.$emit('click:body', e);
|
||||
},
|
||||
onTooltipClick(item: string, event: MouseEvent) {
|
||||
this.$emit('tooltipClick', item, event);
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
v-for="tag in visibleTags"
|
||||
:key="tag.id"
|
||||
:text="tag.name"
|
||||
@click="$emit('click', tag.id, $event)"
|
||||
@click="$emit('click:tag', tag.id, $event)"
|
||||
/>
|
||||
<n8n-link
|
||||
v-if="truncate && !showAll && hiddenTagsLength > 0"
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
uiStore.contextBasedTranslationKeys.credentials.sharing.unavailable.button,
|
||||
)
|
||||
"
|
||||
@click="goToUpgrade"
|
||||
@click:button="goToUpgrade"
|
||||
/>
|
||||
</div>
|
||||
<div v-else-if="isDefaultUser">
|
||||
|
@ -27,7 +27,7 @@
|
|||
$locale.baseText('credentialEdit.credentialSharing.isDefaultUser.description')
|
||||
"
|
||||
:buttonText="$locale.baseText('credentialEdit.credentialSharing.isDefaultUser.button')"
|
||||
@click="goToUsersSettings"
|
||||
@click:button="goToUsersSettings"
|
||||
/>
|
||||
</div>
|
||||
<div v-else>
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
:items="accordionItems"
|
||||
:initiallyExpanded="shouldExpandAccordion"
|
||||
:headerIcon="accordionIcon"
|
||||
@click="onAccordionClick"
|
||||
@click:body="onAccordionClick"
|
||||
@tooltipClick="onItemTooltipClick"
|
||||
>
|
||||
<template #customContent>
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
:buttonText="
|
||||
$locale.baseText(featureInfo.actionBoxButtonLabel || 'fakeDoor.actionBox.button.label')
|
||||
"
|
||||
@click="openLinkPage"
|
||||
@click:button="openLinkPage"
|
||||
>
|
||||
<template #heading>
|
||||
<span v-html="$locale.baseText(featureInfo.actionBoxTitle)" />
|
||||
|
|
|
@ -23,7 +23,7 @@
|
|||
v-if="!loading && template?.categories.length > 0"
|
||||
:title="$locale.baseText('template.details.categories')"
|
||||
>
|
||||
<n8n-tags :tags="template.categories" @click="redirectToCategory" />
|
||||
<n8n-tags :tags="template.categories" @click:tag="redirectToCategory" />
|
||||
</template-details-block>
|
||||
|
||||
<template-details-block v-if="!loading" :title="$locale.baseText('template.details.details')">
|
||||
|
|
|
@ -95,7 +95,7 @@
|
|||
:title="$locale.baseText('ndv.trigger.executionsHint.question')"
|
||||
:description="executionsHelp"
|
||||
:eventBus="executionsHelpEventBus"
|
||||
@click="onLinkClick"
|
||||
@click:body="onLinkClick"
|
||||
></n8n-info-accordion>
|
||||
</div>
|
||||
</transition>
|
||||
|
|
|
@ -27,7 +27,7 @@
|
|||
:tags="data.tags"
|
||||
:truncateAt="3"
|
||||
truncate
|
||||
@click="onClickTag"
|
||||
@click:tag="onClickTag"
|
||||
@expand="onExpandTags"
|
||||
data-test-id="workflow-card-tags"
|
||||
/>
|
||||
|
|
|
@ -54,7 +54,7 @@
|
|||
:description="$locale.baseText(`${resourceKey}.empty.description`)"
|
||||
:buttonText="$locale.baseText(`${resourceKey}.empty.button`)"
|
||||
buttonType="secondary"
|
||||
@click="$emit('click:add', $event)"
|
||||
@click:button="$emit('click:add', $event)"
|
||||
/>
|
||||
</slot>
|
||||
</div>
|
||||
|
|
|
@ -67,7 +67,7 @@
|
|||
:heading="$locale.baseText('settings.api.trial.upgradePlan.title')"
|
||||
:description="$locale.baseText('settings.api.trial.upgradePlan.description')"
|
||||
:buttonText="$locale.baseText('settings.api.trial.upgradePlan.cta')"
|
||||
@click="onUpgrade"
|
||||
@click:button="onUpgrade"
|
||||
/>
|
||||
<n8n-action-box
|
||||
v-else-if="mounted && !isLoadingCloudPlans"
|
||||
|
@ -77,7 +77,7 @@
|
|||
)
|
||||
"
|
||||
:description="$locale.baseText('settings.api.create.description')"
|
||||
@click="createApiKey"
|
||||
@click:button="createApiKey"
|
||||
/>
|
||||
</div>
|
||||
</template>
|
||||
|
|
|
@ -26,7 +26,7 @@ const goToUpgrade = () => {
|
|||
:class="$style.actionBox"
|
||||
:description="locale.baseText('settings.auditLogs.actionBox.description')"
|
||||
:buttonText="locale.baseText('settings.auditLogs.actionBox.buttonText')"
|
||||
@click="goToUpgrade"
|
||||
@click:button="goToUpgrade"
|
||||
>
|
||||
<template #heading>
|
||||
<span>{{ locale.baseText('settings.auditLogs.actionBox.title') }}</span>
|
||||
|
|
|
@ -38,7 +38,7 @@
|
|||
:buttonText="getEmptyStateButtonText"
|
||||
:calloutText="actionBoxConfig.calloutText"
|
||||
:calloutTheme="actionBoxConfig.calloutTheme"
|
||||
@click="onClickEmptyStateButton"
|
||||
@click:button="onClickEmptyStateButton"
|
||||
/>
|
||||
</div>
|
||||
<div :class="$style.cardsContainer" v-else>
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
<n8n-action-box
|
||||
:description="$locale.baseText('settings.ldap.disabled.description')"
|
||||
:buttonText="$locale.baseText('settings.ldap.disabled.buttonText')"
|
||||
@click="goToUpgrade"
|
||||
@click:button="goToUpgrade"
|
||||
>
|
||||
<template #heading>
|
||||
<span>{{ $locale.baseText('settings.ldap.disabled.title') }}</span>
|
||||
|
|
|
@ -44,7 +44,7 @@
|
|||
<div data-test-id="action-box-licensed">
|
||||
<n8n-action-box
|
||||
:buttonText="$locale.baseText(`settings.log-streaming.add`)"
|
||||
@click="addDestination"
|
||||
@click:button="addDestination"
|
||||
>
|
||||
<template #heading>
|
||||
<span v-html="$locale.baseText(`settings.log-streaming.addFirstTitle`)" />
|
||||
|
@ -63,7 +63,7 @@
|
|||
<n8n-action-box
|
||||
:description="$locale.baseText('settings.log-streaming.actionBox.description')"
|
||||
:buttonText="$locale.baseText('settings.log-streaming.actionBox.button')"
|
||||
@click="goToUpgrade"
|
||||
@click:button="goToUpgrade"
|
||||
>
|
||||
<template #heading>
|
||||
<span v-html="$locale.baseText('settings.log-streaming.actionBox.title')" />
|
||||
|
|
|
@ -375,7 +375,7 @@ const refreshBranches = async () => {
|
|||
:class="$style.actionBox"
|
||||
:description="locale.baseText('settings.sourceControl.actionBox.description')"
|
||||
:buttonText="locale.baseText('settings.sourceControl.actionBox.buttonText')"
|
||||
@click="goToUpgrade"
|
||||
@click:button="goToUpgrade"
|
||||
>
|
||||
<template #heading>
|
||||
<span>{{ locale.baseText('settings.sourceControl.actionBox.title') }}</span>
|
||||
|
|
|
@ -225,7 +225,7 @@ onMounted(async () => {
|
|||
:class="$style.actionBox"
|
||||
:description="i18n.baseText('settings.sso.actionBox.description')"
|
||||
:buttonText="i18n.baseText('settings.sso.actionBox.buttonText')"
|
||||
@click="goToUpgrade"
|
||||
@click:button="goToUpgrade"
|
||||
>
|
||||
<template #heading>
|
||||
<span>{{ i18n.baseText('settings.sso.actionBox.title') }}</span>
|
||||
|
|
|
@ -134,7 +134,7 @@ const openPricingPage = () => {
|
|||
:heading="locale.baseText('settings.usageAndPlan.desktop.title')"
|
||||
:description="locale.baseText('settings.usageAndPlan.desktop.description')"
|
||||
:buttonText="locale.baseText('settings.usageAndPlan.button.plans')"
|
||||
@click="openPricingPage"
|
||||
@click:button="openPricingPage"
|
||||
/>
|
||||
<div v-if="!usageStore.isDesktop && !usageStore.isLoading">
|
||||
<n8n-heading :class="$style.title" size="large">
|
||||
|
|
|
@ -32,7 +32,7 @@
|
|||
:buttonText="
|
||||
$locale.baseText(uiStore.contextBasedTranslationKeys.users.settings.unavailable.button)
|
||||
"
|
||||
@click="goToUpgrade"
|
||||
@click:button="goToUpgrade"
|
||||
/>
|
||||
</div>
|
||||
<div v-else-if="usersStore.showUMSetupWarning" :class="$style.setupInfoContainer">
|
||||
|
@ -42,7 +42,7 @@
|
|||
:description="`${
|
||||
isSharingEnabled ? '' : $locale.baseText('settings.users.setupToInviteUsersInfo')
|
||||
}`"
|
||||
@click="redirectToSetup"
|
||||
@click:button="redirectToSetup"
|
||||
/>
|
||||
</div>
|
||||
<div :class="$style.usersContainer" v-else>
|
||||
|
|
|
@ -276,7 +276,7 @@ onBeforeUnmount(() => {
|
|||
"
|
||||
:buttonText="$locale.baseText(contextBasedTranslationKeys.variables.unavailable.button)"
|
||||
buttonType="secondary"
|
||||
@click="goToUpgrade"
|
||||
@click:button="goToUpgrade"
|
||||
/>
|
||||
</template>
|
||||
<template v-if="!isFeatureEnabled" #empty>
|
||||
|
@ -289,7 +289,7 @@ onBeforeUnmount(() => {
|
|||
"
|
||||
:buttonText="$locale.baseText(contextBasedTranslationKeys.variables.unavailable.button)"
|
||||
buttonType="secondary"
|
||||
@click="goToUpgrade"
|
||||
@click:button="goToUpgrade"
|
||||
/>
|
||||
</template>
|
||||
<template #default="{ data }">
|
||||
|
|
Loading…
Reference in a new issue