@@ -135,8 +135,14 @@ const componentPrSyncIcon = document.getElementById('component-pr-sync-icon')
135135const componentPrSyncIconPath = document . getElementById ( 'component-pr-sync-icon-path' )
136136const stylesPrSyncIcon = document . getElementById ( 'styles-pr-sync-icon' )
137137const stylesPrSyncIconPath = document . getElementById ( 'styles-pr-sync-icon-path' )
138- const componentEditorHeaderLabel = document . querySelector ( '#editor-header-component span' )
139- const stylesEditorHeaderLabel = document . querySelector ( '#editor-header-styles span' )
138+ const componentEditorHeaderLabel = document . querySelector (
139+ '#editor-header-component [data-editor-header-label]' ,
140+ )
141+ const stylesEditorHeaderLabel = document . querySelector (
142+ '#editor-header-styles [data-editor-header-label]' ,
143+ )
144+ const componentEditorDirtyStatus = document . getElementById ( 'component-dirty-status' )
145+ const stylesEditorDirtyStatus = document . getElementById ( 'styles-dirty-status' )
140146const aiControlsToggle = document . getElementById ( 'ai-controls-toggle' )
141147const appThemeButtons = document . querySelectorAll ( '[data-app-theme]' )
142148const workspaceTabsShell = document . getElementById ( 'workspace-tabs-shell' )
@@ -194,6 +200,10 @@ const editorHeaderLabelByKind = {
194200 component : componentEditorHeaderLabel ,
195201 styles : stylesEditorHeaderLabel ,
196202}
203+ const editorHeaderDirtyStatusByKind = {
204+ component : componentEditorDirtyStatus ,
205+ styles : stylesEditorDirtyStatus ,
206+ }
197207const defaultTabNameByKind = {
198208 component : defaultComponentTabName ,
199209 styles : defaultStylesTabName ,
@@ -499,6 +509,7 @@ const {
499509 editorKinds,
500510 editorPanelsByKind,
501511 editorHeaderLabelByKind,
512+ editorHeaderDirtyStatusByKind,
502513 defaultTabNameByKind,
503514 toNonEmptyWorkspaceText,
504515 getLoadedStylesTabId : ( ) => loadedStylesTabId ,
0 commit comments