diff --git a/src/frontend/app/process/process.component.html b/src/frontend/app/process/process.component.html index 9a6c3a640d8c19e7cf8e504ff1dbe4e839112ab4..051a00beb3e687fbcece049b7e02f14274ea894b 100644 --- a/src/frontend/app/process/process.component.html +++ b/src/frontend/app/process/process.component.html @@ -166,7 +166,7 @@ </div> <div class="content"> <button mat-button class="categoryLabel" (click)="toggleFollow()"> - <mat-icon color="primary" class="{{this.resourceFollowed ? 'fas':'far'}} fa-star" + <mat-icon class="followIcon {{this.resourceFollowed ? 'fas':'far'}} fa-star" style="font-size: 20px;"></mat-icon> </button> <div class="content-item" *ngIf="this.currentResourceInformations.priority !== undefined"> diff --git a/src/frontend/app/process/process.component.scss b/src/frontend/app/process/process.component.scss index 468b6bb537d9b5857e266f0cf4121be612a2cff4..d674ae01b7eda9b0680f3cdfbe78506d03993edf 100644 --- a/src/frontend/app/process/process.component.scss +++ b/src/frontend/app/process/process.component.scss @@ -409,4 +409,8 @@ ::ng-deep.mat-form-field-wrapper { padding-bottom: 0px; } -} \ No newline at end of file +} + +.followIcon { + color: #F99830; +} diff --git a/src/frontend/app/process/process.component.ts b/src/frontend/app/process/process.component.ts index 1d7692dd56d2633a7673d63e6462a27877bceeaf..16c09f92b0365fe8f4afaf242c44790190ade810 100755 --- a/src/frontend/app/process/process.component.ts +++ b/src/frontend/app/process/process.component.ts @@ -230,6 +230,7 @@ export class ProcessComponent implements OnInit { this.http.get(`../../rest/resources/${this.currentResourceInformations.resId}?light=true`).pipe( tap((data: any) => { this.currentResourceInformations = data; + this.resourceFollowed = data.followed; this.loadBadges(); this.loadSenders(); this.headerService.setHeader(this.lang.eventProcessDoc, this.lang[this.currentResourceInformations.categoryId]);