Skip to content

Commit ca31080

Browse files
committed
Linear share button exports workflow
1 parent b8a7962 commit ca31080

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

src/views/LinearView.vue

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,17 +17,16 @@ import {
1717
import { t } from '@/i18n'
1818
import type { LGraphNode } from '@/lib/litegraph/src/LGraphNode'
1919
import { useTelemetry } from '@/platform/telemetry'
20+
import { useWorkflowService } from '@/platform/workflow/core/services/workflowService'
2021
import { useCanvasStore } from '@/renderer/core/canvas/canvasStore'
2122
import NodeWidgets from '@/renderer/extensions/vueNodes/components/NodeWidgets.vue'
2223
import WidgetInputNumberInput from '@/renderer/extensions/vueNodes/widgets/components/WidgetInputNumber.vue'
2324
import { app } from '@/scripts/app'
2425
import { useCommandStore } from '@/stores/commandStore'
2526
import { useNodeOutputStore } from '@/stores/imagePreviewStore'
26-
//import { useQueueStore } from '@/stores/queueStore'
2727
import { useQueueSettingsStore } from '@/stores/queueStore'
2828
import { isElectron } from '@/utils/envUtil'
2929
30-
//const queueStore = useQueueStore()
3130
const nodeOutputStore = useNodeOutputStore()
3231
const commandStore = useCommandStore()
3332
const nodeDatas = computed(() => {
@@ -116,7 +115,7 @@ function openFeedback() {
116115
>
117116
<SplitterPanel
118117
:size="99"
119-
class="flex flex-row overflow-y-auto flex-wrap min-w-min gap-4"
118+
class="flex flex-row overflow-y-auto flex-wrap min-w-min gap-4 m-4"
120119
>
121120
<img
122121
v-for="previewUrl in nodeOutputStore.latestOutput"
@@ -132,7 +131,7 @@ function openFeedback() {
132131
</SplitterPanel>
133132
<SplitterPanel :size="1" class="flex flex-col gap-1 p-1 min-w-min">
134133
<div
135-
class="actionbar-container flex h-12 items-center rounded-lg border border-[var(--interface-stroke)] p-2 gap-2 bg-comfy-menu-bg justify-center"
134+
class="actionbar-container flex h-12 items-center rounded-lg border border-[var(--interface-stroke)] p-2 gap-2 bg-comfy-menu-bg justify-end"
136135
>
137136
<Button label="Feedback" severity="secondary" @click="openFeedback" />
138137
<Button
@@ -143,7 +142,11 @@ function openFeedback() {
143142
icon-pos="right"
144143
@click="useCanvasStore().linearMode = false"
145144
/>
146-
<!--<Button label="Share" severity="contrast" /> Temporarily disabled-->
145+
<Button
146+
label="Share"
147+
severity="contrast"
148+
@click="useWorkflowService().exportWorkflow('workflow', 'workflow')"
149+
/>
147150
<CurrentUserButton v-if="isLoggedIn" />
148151
<LoginButton v-else-if="isDesktop" />
149152
</div>

0 commit comments

Comments
 (0)