diff --git a/client/web/workflow/src/components/WorkflowEditor.vue b/client/web/workflow/src/components/WorkflowEditor.vue index 4b4055f99..321e56b28 100644 --- a/client/web/workflow/src/components/WorkflowEditor.vue +++ b/client/web/workflow/src/components/WorkflowEditor.vue @@ -235,10 +235,12 @@ class="d-flex align-items-center w-100 h5 mb-0 p-2" >

{{ getSidebarItemType }}

@@ -631,8 +633,14 @@ export default { computed: { getSidebarItemType () { - const { item } = this.sidebar - return this.$t(`steps:${item.node.style}.short`) || item.node.style + const { item = {} } = this.sidebar || {} + const { style, edge } = item.node || {} + + if (edge) { + return this.$t('steps:path.short') + } + + return this.$t(`steps:${style}.short`) || style }, getSidebarItemIcon () { @@ -641,6 +649,7 @@ export default { if (item && item.config) { return this.getIcon(getStyleFromKind(item.config).icon, this.currentTheme) } + return undefined }, @@ -2560,6 +2569,10 @@ export default { }, getIcon (icon, mode = 'light') { + if (!icon) { + return '' + } + return `${mxClient.imageBasePath}/${mode === 'dark' ? 'dark/' : ''}${icon}.svg` }, }, diff --git a/locale/en/corteza-webapp-workflow/steps.yaml b/locale/en/corteza-webapp-workflow/steps.yaml index 52f788347..b0d3a5634 100644 --- a/locale/en/corteza-webapp-workflow/steps.yaml +++ b/locale/en/corteza-webapp-workflow/steps.yaml @@ -112,4 +112,7 @@ tooltip: content: label: Content short: Content - tooltip: Content block used for text annotations \ No newline at end of file + tooltip: Content block used for text annotations +path: + label: Path + short: Path \ No newline at end of file