Skip to content

Commit

Permalink
fix: Fix for history icons (#2680)
Browse files Browse the repository at this point in the history
Co-authored-by: Dimple <[email protected]>
  • Loading branch information
Dimple16 and Dimple committed Jan 19, 2024
1 parent 4b7102d commit 8b13a36
Show file tree
Hide file tree
Showing 10 changed files with 30 additions and 11 deletions.
4 changes: 2 additions & 2 deletions src/app/core/services/status.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -136,13 +136,13 @@ export class StatusService {
case lowerCaseComment.indexOf('unflagged') > -1:
statusCategory = {
category: 'Unflagged',
icon: 'flag',
icon: 'flag-outline',
};
break;
case lowerCaseComment.indexOf('flagged') > -1:
statusCategory = {
category: 'Flagged',
icon: 'flag',
icon: 'flag-fill',
};
break;
case lowerCaseComment.indexOf('additional approvers are not present') > -1:
Expand Down
6 changes: 3 additions & 3 deletions src/app/core/test-data/status.service.spec.data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -942,7 +942,7 @@ export const updateReponseWithFlattenedEStatus: ExtendedStatus[] = [
isOthersComment: true,
st: {
category: 'Flagged',
icon: 'flag',
icon: 'flag-fill',
},
},
{
Expand All @@ -962,7 +962,7 @@ export const updateReponseWithFlattenedEStatus: ExtendedStatus[] = [
isOthersComment: true,
st: {
category: 'Unflagged',
icon: 'flag',
icon: 'flag-outline',
},
},
{
Expand Down Expand Up @@ -2097,7 +2097,7 @@ export const systemCommentsWithSt: ExtendedStatus[] = [
show_dt: true,
st: {
category: 'Flagged',
icon: 'flag',
icon: 'flag-fill',
},
},
];
2 changes: 1 addition & 1 deletion src/app/fyle/my-expenses-v2/my-expenses-v2.page.html
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
</ng-container>
<ion-buttons mode="md" slot="end">
<ion-button *ngIf="isMergeAllowed" (click)="mergeExpenses()">
<ion-icon src="../../../assets/svg/merge.svg"></ion-icon>
<ion-icon class="my-expenses--merge-icon" src="../../../assets/svg/merge.svg"></ion-icon>
</ion-button>
<ion-button (click)="openDeleteExpensesPopover()" [disabled]="isDisabled">
<ion-icon src="../../../assets/svg/bin.svg"></ion-icon>
Expand Down
4 changes: 4 additions & 0 deletions src/app/fyle/my-expenses-v2/my-expenses-v2.page.scss
Original file line number Diff line number Diff line change
Expand Up @@ -322,4 +322,8 @@
opacity: 0.8;
}
}

&--merge-icon {
color: $brand-primary;
}
}
2 changes: 1 addition & 1 deletion src/app/fyle/my-expenses/my-expenses.page.html
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
</ng-container>
<ion-buttons mode="md" slot="end">
<ion-button *ngIf="isMergeAllowed" (click)="mergeExpenses()">
<ion-icon src="../../../assets/svg/merge.svg"></ion-icon>
<ion-icon class="my-expenses--merge-icon" src="../../../assets/svg/merge.svg"></ion-icon>
</ion-button>
<ion-button
(click)="openDeleteExpensesPopover()"
Expand Down
4 changes: 4 additions & 0 deletions src/app/fyle/my-expenses/my-expenses.page.scss
Original file line number Diff line number Diff line change
Expand Up @@ -322,4 +322,8 @@
opacity: 0.8;
}
}

&--merge-icon {
color: $brand-primary;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
'audit-history--merge': estatus.st.icon === 'merge',
'audit-history--success': estatus.st.icon === 'check-square-fill',
'icon--alert-warning': estatus.st.icon === 'warning-fill',
'icon--flagged': estatus.st.category === 'Flagged',
'icon--unflagged': estatus.st.category === 'Unflagged',
'audit-history--flagged': estatus.st.category === 'Flagged',
'audit-history--unflagged': estatus.st.category === 'Unflagged',
'audit-history--card-filled': estatus.st.category === ('Card Transaction Matched' || 'Expense Matched')
}"
></mat-icon>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,4 +79,12 @@
&--card-filled {
color: $green;
}

&--flagged {
color: $red;
}

&--unflagged {
color: $grey-light;
}
}
3 changes: 3 additions & 0 deletions src/app/shared/icon/icon.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,16 @@ export class IconModule {
'danger-fill.svg',
'dashboard.svg',
'duplicate.svg',
'edit.svg',
'envelope.svg',
'fyle-logo-dark.svg',
'fyle-logo-light.svg',
'file-lightning-indicator.svg',
'file-pdf.svg',
'filter-applied.svg',
'filter.svg',
'flag-fill.svg',
'flag-outline.svg',
'flash-off.svg',
'flash-on.svg',
'gear.svg',
Expand Down
4 changes: 2 additions & 2 deletions src/assets/svg/merge.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 8b13a36

Please sign in to comment.