@@ -587,7 +587,11 @@ document.addEventListener('DOMContentLoaded', () => {
587587 return true ;
588588 }
589589 } ) ( ) ;
590- void this . loadWebUiPreferences ( { applyNavigation : applyPreferenceNavigation } ) ;
590+ this . loadWebUiPreferences ( { applyNavigation : applyPreferenceNavigation } ) . then ( ( ) => {
591+ if ( this . mainTab === 'prompts' && typeof this . loadPromptsTabContent === 'function' ) {
592+ this . loadPromptsTabContent ( ) ;
593+ }
594+ } ) ;
591595 }
592596 if ( typeof this . t === 'function' ) {
593597 this . confirmDialogConfirmText = this . t ( 'confirm.ok' ) ;
@@ -786,14 +790,7 @@ document.addEventListener('DOMContentLoaded', () => {
786790 return ;
787791 }
788792 if ( newTab === 'prompts' ) {
789- if ( this . promptsSubTab === 'claude-project' && ! this . projectPathOptions . length && ! this . projectPathOptionsLoading && typeof this . loadProjectPathOptions === 'function' ) {
790- this . loadProjectPathOptions ( ) ;
791- }
792- if ( this . promptsSubTab === 'system' ) {
793- if ( typeof this . loadSystemPrompt === 'function' ) this . loadSystemPrompt ( ) ;
794- } else if ( typeof this . loadPromptsContent === 'function' ) {
795- this . loadPromptsContent ( ) ;
796- }
793+ if ( typeof this . loadPromptsTabContent === 'function' ) this . loadPromptsTabContent ( ) ;
797794 }
798795 } ,
799796 promptsSubTab ( newVal ) {
@@ -805,11 +802,7 @@ document.addEventListener('DOMContentLoaded', () => {
805802 return ;
806803 }
807804 if ( this . mainTab === 'prompts' ) {
808- if ( this . promptsSubTab === 'system' ) {
809- if ( typeof this . loadSystemPrompt === 'function' ) this . loadSystemPrompt ( ) ;
810- } else if ( typeof this . loadPromptsContent === 'function' ) {
811- this . loadPromptsContent ( ) ;
812- }
805+ if ( typeof this . loadPromptsTabContent === 'function' ) this . loadPromptsTabContent ( ) ;
813806 }
814807 } ,
815808 projectClaudeMdPath ( newPath ) {
0 commit comments