Skip to content

Commit 4b52948

Browse files
authored
Merge pull request #7007 from FlowFuse/7001-tab-title
[7001] Update embedded editor wrappers to reflect Node-RED tab title
2 parents f4a24b0 + e945f54 commit 4b52948

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

frontend/src/stores/product-assistant.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -297,6 +297,11 @@ export const useProductAssistantStore = defineStore('product-assistant', {
297297
return this.removeDebugLogContext(payload.data.debugLog)
298298
case payload.data.type === 'debug-log-context-clear':
299299
return this.resetDebugLogContext()
300+
case payload.data.type === 'nr-assistant/workspace:change':
301+
if (payload.data.tab?.label) {
302+
document.title = `Node-RED: ${payload.data.tab.label} - FlowFuse`
303+
}
304+
break
300305
default:
301306
// do nothing
302307
}

0 commit comments

Comments
 (0)