Utilities service minor changes. Remove margin from header title in navbar.
This commit is contained in:
parent
2f65202142
commit
1fbb461faa
|
@ -52,7 +52,7 @@
|
||||||
<button (click)="login()" class=" uk-button uk-button-primary">Login</button>
|
<button (click)="login()" class=" uk-button uk-button-primary">Login</button>
|
||||||
</div>
|
</div>
|
||||||
</form-->
|
</form-->
|
||||||
<div *ngIf="errorCode == '1'" class="uk-alert uk-alert-warning">
|
<div *ngIf="errorCode == '1' || !loggedIn" class="uk-alert uk-alert-warning">
|
||||||
The requested page requires authentication.
|
The requested page requires authentication.
|
||||||
<span *ngIf="!loggedIn">Please <a class="uk-link" (click)="logIn()"> sign in</a> to continue.
|
<span *ngIf="!loggedIn">Please <a class="uk-link" (click)="logIn()"> sign in</a> to continue.
|
||||||
</span>
|
</span>
|
||||||
|
|
|
@ -13,15 +13,11 @@ export class UtilitiesService {
|
||||||
uploadPhoto(url: string, photo: File): Observable<any> {
|
uploadPhoto(url: string, photo: File): Observable<any> {
|
||||||
const formData = new FormData();
|
const formData = new FormData();
|
||||||
formData.append('photo', photo);
|
formData.append('photo', photo);
|
||||||
return this.http.post(url, formData, CustomOptions.getAuthOptions());
|
return this.http.post(url, formData, {withCredentials: true});
|
||||||
}
|
}
|
||||||
|
|
||||||
deletePhoto(url: string) {
|
deletePhoto(url: string): Observable<any> {
|
||||||
return this.http.delete(url, CustomOptions.getAuthOptions());
|
return this.http.delete(url, {withCredentials: true});
|
||||||
}
|
|
||||||
|
|
||||||
getTiny(url: string) {
|
|
||||||
return this.http.get(url, {responseType: 'text'});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -272,7 +272,7 @@
|
||||||
class="uk-responsive-height">
|
class="uk-responsive-height">
|
||||||
<ng-container *ngIf="(mobile && !header.logoSmallUrl) || (!mobile && !header.logoUrl)">
|
<ng-container *ngIf="(mobile && !header.logoSmallUrl) || (!mobile && !header.logoUrl)">
|
||||||
<div class="multi-line-ellipsis lines-2" [style.max-width]="(!mobile)?'25vw':null" [title]="header.title">
|
<div class="multi-line-ellipsis lines-2" [style.max-width]="(!mobile)?'25vw':null" [title]="header.title">
|
||||||
<p>{{header.title}}</p>
|
<p class="uk-margin-remove">{{header.title}}</p>
|
||||||
</div>
|
</div>
|
||||||
</ng-container>
|
</ng-container>
|
||||||
</a>
|
</a>
|
||||||
|
@ -284,7 +284,7 @@
|
||||||
class="uk-responsive-height">
|
class="uk-responsive-height">
|
||||||
<ng-container *ngIf="(mobile && !header.logoSmallUrl) || (!mobile && !header.logoUrl)">
|
<ng-container *ngIf="(mobile && !header.logoSmallUrl) || (!mobile && !header.logoUrl)">
|
||||||
<div class="multi-line-ellipsis lines-2" [style.max-width]="(!mobile)?'25vw':null" [title]="header.title">
|
<div class="multi-line-ellipsis lines-2" [style.max-width]="(!mobile)?'25vw':null" [title]="header.title">
|
||||||
<p>{{header.title}}</p>
|
<p class="uk-margin-remove">{{header.title}}</p>
|
||||||
</div>
|
</div>
|
||||||
</ng-container>
|
</ng-container>
|
||||||
</a>
|
</a>
|
||||||
|
|
Loading…
Reference in New Issue