commit
64a60740d4
|
@ -0,0 +1,3 @@
|
|||
page-core-login-site-error button.button.button-block {
|
||||
margin-bottom: 3rem;
|
||||
}
|
|
@ -36,13 +36,12 @@
|
|||
<button ion-button block [disabled]="!siteForm.valid">{{ 'core.login.connect' | translate }}</button>
|
||||
</form>
|
||||
<!-- Pick the site from a list of fixed sites. -->
|
||||
<ion-list *ngIf="fixedSites && fixedDisplay == 'list'">
|
||||
<p class="padding no-padding-bottom">{{ 'core.login.selectsite' | translate }}</p>
|
||||
|
||||
<ion-list *ngIf="fixedSites && (fixedDisplay == 'list' || fixedDisplay == 'listnourl')">
|
||||
<ion-item no-lines><h2 class="item-heading">{{ 'core.login.selectsite' | translate }}</h2></ion-item>
|
||||
<ion-searchbar *ngIf="fixedSites.length > 4" [(ngModel)]="filter" (ionInput)="filterChanged($event)" (ionCancel)="filterChanged()" [placeholder]="'core.login.findyoursite' | translate"></ion-searchbar>
|
||||
<ion-item *ngFor="let site of filteredSites" (click)="connect($event, site.url)" [title]="site.name" detail-push text-wrap>
|
||||
<h2>{{site.name}}</h2>
|
||||
<p>{{site.url}}</p>
|
||||
<p *ngIf="fixedDisplay == 'list'">{{site.url}}</p>
|
||||
</ion-item>
|
||||
</ion-list>
|
||||
|
||||
|
|
|
@ -50,7 +50,7 @@ export class CoreLoginSitePage {
|
|||
this.fixedSites = <any[]> this.loginHelper.getFixedSites();
|
||||
this.fixedDisplay = CoreConfigConstants.multisitesdisplay;
|
||||
// Autoselect if not defined.
|
||||
if (['list', 'select', 'buttons'].indexOf(this.fixedDisplay) < 0) {
|
||||
if (['list', 'listnourl', 'select', 'buttons'].indexOf(this.fixedDisplay) < 0) {
|
||||
this.fixedDisplay = this.fixedSites.length > 8 ? 'list' : (this.fixedSites.length > 3 ? 'select' : 'buttons');
|
||||
}
|
||||
this.filteredSites = this.fixedSites;
|
||||
|
|
Loading…
Reference in New Issue