fix(editor): Move versions check to init function and refactor store (no-changelog) (#8067)

This commit is contained in:
Alex Grozav
2023-12-20 12:49:40 +02:00
committed by GitHub
parent faadfd6d4a
commit fcff34c401
10 changed files with 223 additions and 84 deletions

View File

@@ -29,7 +29,12 @@
/></template>
<template #menuSuffix>
<div>
<div v-if="hasVersionUpdates" :class="$style.updates" @click="openUpdatesPanel">
<div
v-if="hasVersionUpdates"
data-test-id="version-updates-panel-button"
:class="$style.updates"
@click="openUpdatesPanel"
>
<div :class="$style.giftContainer">
<GiftNotificationIcon />
</div>

View File

@@ -1,5 +1,10 @@
<template>
<ModalDrawer :name="VERSIONS_MODAL_KEY" direction="ltr" width="520px">
<ModalDrawer
:name="VERSIONS_MODAL_KEY"
direction="ltr"
width="520px"
data-test-id="version-updates-panel"
>
<template #header>
<span :class="$style.title">
{{ $locale.baseText('updatesPanel.weVeBeenBusy') }}
@@ -31,7 +36,7 @@
</p>
<n8n-link v-if="infoUrl" :to="infoUrl" :bold="true">
<font-awesome-icon icon="info-circle"></font-awesome-icon>
<font-awesome-icon icon="info-circle" class="mr-2xs" />
<span>
{{ $locale.baseText('updatesPanel.howToUpdateYourN8nVersion') }}
</span>

View File

@@ -1,5 +1,11 @@
<template>
<a v-if="version" :href="version.documentationUrl" target="_blank" :class="$style.card">
<a
v-if="version"
:href="version.documentationUrl"
target="_blank"
:class="$style.card"
data-test-id="version-card"
>
<div :class="$style.header">
<div>
<div :class="$style.name">