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

This commit is contained in:
Konstantinos Triantafyllou 2021-11-26 10:31:50 +02:00
parent 2f65202142
commit 1fbb461faa
3 changed files with 7 additions and 11 deletions

View File

@ -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>

View File

@ -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());
}
getTiny(url: string) {
return this.http.get(url, {responseType: 'text'});
deletePhoto(url: string): Observable<any> {
return this.http.delete(url, {withCredentials: true});
}
}

View File

@ -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>