From 1a8694a9cd0daa5ff7fedc85f7433edb5338c2e5 Mon Sep 17 00:00:00 2001 From: Guillaume Heurtier <guillaume.heurtier@maarch.org> Date: Mon, 6 Jan 2020 18:15:07 +0100 Subject: [PATCH] FEAT #11403 TIME 0:10 changed follow icon color --- src/frontend/app/process/process.component.html | 2 +- src/frontend/app/process/process.component.scss | 6 +++++- src/frontend/app/process/process.component.ts | 1 + 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/frontend/app/process/process.component.html b/src/frontend/app/process/process.component.html index 9a6c3a640d8..051a00beb3e 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 468b6bb537d..d674ae01b7e 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 1d7692dd56d..16c09f92b03 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]); -- GitLab