fix(editor): Implement simple view for templates experiment (no-changelog) (#6637)

Signed-off-by: Oleg Ivaniv <me@olegivaniv.com>
This commit is contained in:
OlegIvaniv
2023-07-11 12:16:48 +02:00
committed by GitHub
parent d6b2ae0255
commit 180ab8d7c2
3 changed files with 10 additions and 4 deletions

View File

@@ -13,7 +13,7 @@
</div>
<div v-else>
<n8n-heading :bold="true" size="small">{{ workflow.name }}</n8n-heading>
<div :class="$style.content">
<div :class="$style.content" v-if="!simpleView">
<span v-if="workflow.totalViews">
<n8n-text size="small" color="text-light">
<font-awesome-icon icon="eye" />
@@ -72,6 +72,10 @@ export default defineComponent({
loading: {
type: Boolean,
},
simpleView: {
type: Boolean,
default: false,
},
},
components: {
TimeAgo,
@@ -122,6 +126,7 @@ export default defineComponent({
background-color: var(--color-background-xlight);
display: flex;
align-items: center;
padding: 0 var(--spacing-s) var(--spacing-s) var(--spacing-s);
background-color: var(--color-background-xlight);
cursor: pointer;