File tree Expand file tree Collapse file tree
src/folderview.plus/usr/local/emhttp/plugins/folderview.plus/scripts Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -707,6 +707,11 @@ const resolveSetupAssistantTemplateBestMatch = (...args) => getWizardSmartDetect
707707const resolveSetupAssistantSmartBlueprintIndexes = ( ...args ) => getWizardSmartDetectApi ( ) . resolveSetupAssistantSmartBlueprintIndexes ( ...args ) ;
708708const buildSetupAssistantTemplateAssignmentPreview = ( ...args ) => getWizardSmartDetectApi ( ) . buildSetupAssistantTemplateAssignmentPreview ( ...args ) ;
709709
710+ const SETUP_ASSISTANT_TEMPLATE_FALLBACK_BY_TYPE = Object . freeze ( {
711+ docker : String ( ( window . FolderViewPlusSmartDetectConfig || { } ) . fallbackByType ?. docker || 'Utilities' ) ,
712+ vm : String ( ( window . FolderViewPlusSmartDetectConfig || { } ) . fallbackByType ?. vm || 'Utility VMs' )
713+ } ) ;
714+
710715const buildSetupAssistantTemplatePlanForType = ( type ) => {
711716 const resolvedType = normalizeManagedType ( type ) ;
712717 const bootstrap = getSetupAssistantTemplateBootstrap ( resolvedType ) ;
Original file line number Diff line number Diff line change @@ -167,6 +167,8 @@ test('smart detect thresholds and aliases are centralized in the shared config m
167167 assert . match ( wizardJs , / w i n d o w \. F o l d e r V i e w P l u s W i z a r d S m a r t D e t e c t \| \| n u l l / ) ;
168168 assert . match ( wizardJs , / c o n s t g e t W i z a r d S m a r t D e t e c t A p i = \( \( \) = > / ) ;
169169 assert . match ( wizardJs , / c a c h e d A p i = w i z a r d S m a r t D e t e c t M o d u l e \. c r e a t e A p i \( / ) ;
170+ assert . match ( wizardJs , / c o n s t S E T U P _ A S S I S T A N T _ T E M P L A T E _ F A L L B A C K _ B Y _ T Y P E = O b j e c t \. f r e e z e \( / ) ;
171+ assert . match ( wizardJs , / w i n d o w \. F o l d e r V i e w P l u s S m a r t D e t e c t C o n f i g \| \| \{ \} / ) ;
170172 assert . match ( settingsJs , / w i n d o w \. F o l d e r V i e w P l u s S m a r t D e t e c t C o n f i g \| \| \{ \} / ) ;
171173} ) ;
172174
You can’t perform that action at this time.
0 commit comments