Skip to content

Commit

Permalink
Change SiteManage component to open the new App Service Plan blade
Browse files Browse the repository at this point in the history
  • Loading branch information
ehamai committed Jan 25, 2018
1 parent 5ac2a92 commit 2a4e514
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,7 @@ export class ScenarioIds {
public static readonly noPaddingOnSideNav = 'NoPaddingOnSideNav';
public static readonly downloadWithAppSettings = 'DownloadWithAppSettings';
public static readonly downloadWithVsProj = 'DownloadWithVsProj';
public static readonly openOldWebhostingPlanBlade = 'OpenOldWebhostingPlanBlade';
}

export class ServerFarmSku {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@ export class OnPremEnvironment extends Environment {
}
};

this.scenarioChecks[ScenarioIds.openOldWebhostingPlanBlade] = {
id: ScenarioIds.openOldWebhostingPlanBlade,
runCheck: () => {
return { status: 'enabled' };
}
};
}

public isCurrentEnvironment(input?: ScenarioCheckInput): boolean {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -504,7 +504,9 @@ export class SiteManageComponent extends FunctionAppContextComponent implements
this._translateService.instant(PortalResources.feature_appServicePlanInfo),
'image/app-service-plan.svg',
{
detailBlade: 'WebHostingPlanBlade',
detailBlade: this._scenarioService.checkScenario(ScenarioIds.openOldWebhostingPlanBlade).status === 'enabled'
? 'WebHostingPlanBlade'
: 'PlansOverviewBlade',
detailBladeInputs: { id: site.properties.serverFarmId }
},
this._portalService,
Expand Down

0 comments on commit 2a4e514

Please sign in to comment.