Utilities service minor changes. Remove margin from header title in navbar.

deprecated-master
parent 2f65202142
commit 1fbb461faa

@ -52,7 +52,7 @@
<button (click)="login()" class=" uk-button uk-button-primary">Login</button>
</div>
</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.
<span *ngIf="!loggedIn">Please <a class="uk-link" (click)="logIn()"> sign in</a> to continue.
</span>

@ -13,15 +13,11 @@ export class UtilitiesService {
uploadPhoto(url: string, photo: File): Observable<any> {
const formData = new FormData();
formData.append('photo', photo);
return this.http.post(url, formData, CustomOptions.getAuthOptions());
return this.http.post(url, formData, {withCredentials: true});
}
deletePhoto(url: string) {
return this.http.delete(url, CustomOptions.getAuthOptions());
deletePhoto(url: string): Observable<any> {
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">
<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">
<p>{{header.title}}</p>
<p class="uk-margin-remove">{{header.title}}</p>
</div>
</ng-container>
</a>
@ -284,7 +284,7 @@
class="uk-responsive-height">
<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">
<p>{{header.title}}</p>
<p class="uk-margin-remove">{{header.title}}</p>
</div>
</ng-container>
</a>

Loading…
Cancel
Save