Skip to content

Commit

Permalink
Merge 1f22680 into e608da2
Browse files Browse the repository at this point in the history
  • Loading branch information
Allison Gruninger committed Oct 1, 2018
2 parents e608da2 + 1f22680 commit cdfcc3f
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 22 deletions.
33 changes: 16 additions & 17 deletions client/src/app/site/site-summary/site-summary.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -146,21 +146,20 @@

</div>

<div *ngIf="!bodyLoading" id="site-summary-body">
<div *ngIf="!showQuickstart && !this.isStandalone" id="site-summary-features">
<site-enabled-features [siteInput]="context?.site"></site-enabled-features>
</div>
<div *ngIf="showQuickstart" id="site-summary-quickstart">
<img src="image/quickstart.svg"/>
<h2>{{ 'quickstartMessage1' | translate }}</h2>
<h2>{{ 'quickstartMessage2' | translate }}</h2>
<a class="new-function"
(click)="openQuickstartTab()"
tabindex="0"
(keydown)="onKeyPress($event, 'functionNew')">
<span load-image="image/add.svg" class="icon-small"></span>
{{ 'newFunction' | translate }}
</a>
<!-- <h2>Create a function using our new quickstart and we'll get you going in 5 minutes or less!</h2> -->
</div>
<div id="site-summary-body">
<div *ngIf="!this.isStandalone" id="site-summary-features">
<site-enabled-features [siteInput]="context?.site"></site-enabled-features>
</div>
<div *ngIf="showQuickstart" id="site-summary-quickstart">
<img src="image/quickstart.svg"/>
<h2>{{ 'quickstartMessage1' | translate }}</h2>
<h2>{{ 'quickstartMessage2' | translate }}</h2>
<a class="new-function"
(click)="openQuickstartTab()"
tabindex="0"
(keydown)="onKeyPress($event, 'functionNew')">
<span load-image="image/add.svg" class="icon-small"></span>
{{ 'newFunction' | translate }}
</a>
</div>
</div>
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@

#site-summary-features{
width: 300px;
float: left;
}

#site-summary-quickstart{
Expand Down
6 changes: 1 addition & 5 deletions client/src/app/site/site-summary/site-summary.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,7 @@ export class SiteSummaryComponent extends FeatureComponent<TreeViewInfo<SiteData
public hideAvailability: boolean;
public Resources = PortalResources;
public showDownloadFunctionAppModal = false;
public showQuickstart: boolean;
public bodyLoading = true;
public showQuickstart = false;
public notifications: TopBarNotification[];

private _viewInfo: TreeViewInfo<SiteData>;
Expand Down Expand Up @@ -180,10 +179,7 @@ export class SiteSummaryComponent extends FeatureComponent<TreeViewInfo<SiteData

if (r.functionInfo.length === 0 && !this.isStandalone && this.hasWriteAccess && r.runtime.startsWith('2.')) {
this.showQuickstart = true;
} else {
this.showQuickstart = false;
}
this.bodyLoading = false;

if (!r.pingedScmSite) {
this.showComponentError({
Expand Down

0 comments on commit cdfcc3f

Please sign in to comment.