@@ -9,6 +9,7 @@ import { localize } from "../../utils/localize";
99import { ContainerRegistryListStep } from "../deployImage/ContainerRegistryListStep" ;
1010import { EnvironmentVariablesListStep } from "./EnvironmentVariablesListStep" ;
1111import { IContainerAppContext } from './IContainerAppContext' ;
12+ import { setQuickStartImage } from "./setQuickStartImage" ;
1213
1314export class ImageSourceListStep extends AzureWizardPromptStep < IContainerAppContext > {
1415 public async prompt ( context : IContainerAppContext ) : Promise < void > {
@@ -20,7 +21,7 @@ export class ImageSourceListStep extends AzureWizardPromptStep<IContainerAppCont
2021
2122 const placeHolder : string = localize ( 'imageBuildSourcePrompt' , 'Select an image source for the container app' ) ;
2223 const picks : IAzureQuickPickItem < ImageSourceValues | undefined > [ ] = [
23- { label : imageSourceLabels [ 0 ] , data : ImageSource . QuickStartImage , suppressPersistence : true } ,
24+ { label : imageSourceLabels [ 0 ] , data : ImageSource . QuickStartImage , suppressPersistence : true } ,
2425 { label : imageSourceLabels [ 1 ] , data : ImageSource . ExternalRegistry , suppressPersistence : true } ,
2526 // { label: imageSourceLabels[2], data: undefined, suppressPersistence: true },
2627 ] ;
@@ -37,13 +38,13 @@ export class ImageSourceListStep extends AzureWizardPromptStep<IContainerAppCont
3738
3839 switch ( context . imageSource ) {
3940 case ImageSource . QuickStartImage :
40- // Todo: @mmott
41- throw new Error ( 'Not implemented yet' ) ;
41+ setQuickStartImage ( context ) ;
42+ break ;
4243 case ImageSource . ExternalRegistry :
4344 promptSteps . push ( new ContainerRegistryListStep ( ) , new EnvironmentVariablesListStep ( ) ) ;
4445 break ;
4546 default :
46- // Todo: Steps that lead to additional 'Build from project' options
47+ // Todo: Steps that lead to additional 'Build from project' options
4748 }
4849
4950 return { promptSteps } ;
0 commit comments