Skip to content
Snippets Groups Projects
Commit 81947bed authored by Florent Poittevin's avatar Florent Poittevin
Browse files

style: change quickstatus when pending

parent f0bf47b5
No related branches found
No related tags found
No related merge requests found
<mat-icon *ngIf="classes === PENDING"
class="icon"
>autorenew
</mat-icon>
...@@ -2,6 +2,11 @@ ...@@ -2,6 +2,11 @@
$size: 20px; $size: 20px;
:host { :host {
.icon {
font-size: $size;
color: $white;
}
width: $size; width: $size;
height: $size; height: $size;
background-color: $medium-light-grey; background-color: $medium-light-grey;
...@@ -26,20 +31,17 @@ $size: 20px; ...@@ -26,20 +31,17 @@ $size: 20px;
} }
&.pending { &.pending {
animation-name: blink; animation-name: rotate;
animation-duration: 2s; animation-duration: 2s;
animation-iteration-count: infinite; animation-iteration-count: infinite;
animation-timing-function: linear; animation-timing-function: linear;
@keyframes blink { @keyframes rotate {
from { from {
opacity: 1; transform: rotate(0deg);
}
50% {
opacity: 0;
} }
to { to {
opacity: 1; transform: rotate(360deg);
} }
} }
} }
......
...@@ -32,6 +32,8 @@ export class SharedDatafileQuickStatusPresentational extends SharedAbstractPrese ...@@ -32,6 +32,8 @@ export class SharedDatafileQuickStatusPresentational extends SharedAbstractPrese
@HostBinding("class") @HostBinding("class")
classes: string; classes: string;
readonly PENDING: string = "pending";
getColor(): string { getColor(): string {
switch (this.value) { switch (this.value) {
case DataFileStatusEnum.READY: case DataFileStatusEnum.READY:
...@@ -51,7 +53,7 @@ export class SharedDatafileQuickStatusPresentational extends SharedAbstractPrese ...@@ -51,7 +53,7 @@ export class SharedDatafileQuickStatusPresentational extends SharedAbstractPrese
return "cleaned"; return "cleaned";
default: default:
this.toolipToTranslate = TRANSLATE("dataFileQuickStatus.pending"); this.toolipToTranslate = TRANSLATE("dataFileQuickStatus.pending");
return "pending"; return this.PENDING;
} }
} }
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment