feat(editor): Load fixed template list as experiment (#6632)

* feat(editor): Load fixed template list as experiment

Signed-off-by: Oleg Ivaniv <me@olegivaniv.com>

* Improve templates loading

Signed-off-by: Oleg Ivaniv <me@olegivaniv.com>

* get rid of endResult message

Signed-off-by: Oleg Ivaniv <me@olegivaniv.com>

* Do not lazy-load when fixedListExperiment

Signed-off-by: Oleg Ivaniv <me@olegivaniv.com>

---------

Signed-off-by: Oleg Ivaniv <me@olegivaniv.com>
This commit is contained in:
OlegIvaniv
2023-07-10 17:11:42 +02:00
committed by GitHub
parent aa53c46367
commit e9966224ea
8 changed files with 71 additions and 59 deletions

View File

@@ -1,6 +1,6 @@
<template>
<div :class="$style.list" v-if="loading || workflows.length">
<div :class="$style.header">
<div :class="$style.header" v-if="!hideHeader">
<n8n-heading :bold="true" size="medium" color="text-light">
{{ $locale.baseText('templates.workflows') }}
<span v-if="!loading && totalWorkflows" v-text="`(${totalWorkflows})`" />
@@ -57,6 +57,10 @@ export default defineComponent({
totalWorkflows: {
type: Number,
},
hideHeader: {
type: Boolean,
default: false,
},
},
mounted() {
if (this.infiniteScrollEnabled) {