Skip to content

Commit

Permalink
Merge pull request #442 from bcgov/oleks
Browse files Browse the repository at this point in the history
Fix dashboard table. Fix send notice logic
  • Loading branch information
ychung-mot authored Jun 27, 2024
2 parents 0322f76 + cab82f1 commit e0ddca0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ export class BulkComplianceNoticeComponent implements OnInit {
ccList: formValues.ccList.prototype === Array
? formValues
: (formValues.ccList as string).split(',').filter(x => !!x).map(x => x.trim()),
hostEmailSent: x.sendNoticeToHosts,
hostEmailSent: !x.sendNoticeToHosts,
comment: formValues.comment,
lgContactEmail: formValues.lgContactEmail,
}));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { User } from '../../../common/models/user';
import { DashboardService } from '../../../common/services/dashboard.service';
import { DashboardCard } from '../../../common/models/dashboard-card';
import { ListingUploadHistoryTableComponent } from '../../../common/listing-upload-history-table/listing-upload-history-table.component';
import { listing_file_upload } from '../../../common/consts/permissions.const';
import { upload_history_read } from '../../../common/consts/permissions.const';
import { GlobalLoaderService } from '../../../common/services/global-loader.service';


Expand Down Expand Up @@ -46,7 +46,7 @@ export class DashboardComponent implements OnInit {
next: (value: User) => {
this.currentUser = value;
this.cardsToDisplay = this.dashboardService.getCardsPerUserType(this.currentUser);
this.showListingHistory = this.currentUser.permissions.includes(listing_file_upload);
this.showListingHistory = this.currentUser.permissions.includes(upload_history_read);
},
complete: () => {
this.loaderService.loadingEnd();
Expand Down

0 comments on commit e0ddca0

Please sign in to comment.