Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/app/services/app-init.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ export class AppInitService {
environment.feedbackCampaignExpiration = config.feedbackCampaign ?? moment().add(1, 'week').unix()
environment.providerThemeName = config.theme ?? 'default';
environment.QUOTES_ENABLED = config.quotesEnabled ?? false
environment.TENDER_ENABLED = config.tenderingEnabled ?? false
resolve(config);
}),
error: (error) => {
Expand Down
2 changes: 2 additions & 0 deletions src/app/shared/header/header.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,8 @@
<li>
<button id="quotelist" (click)="goTo('/quote-list')" class="flex w-full justify-left px-4 py-2 hover:bg-gray-100 dark:hover:bg-gray-600 dark:hover:text-white"><fa-icon [icon]="faReceipt" class="mr-2"></fa-icon>Quotes</button>
</li>
}
@if(tenderEnabled){
<li>
<button id="tenderlist" (click)="goTo('/tenders')" class="flex w-full justify-left px-4 py-2 hover:bg-gray-100 dark:hover:bg-gray-600 dark:hover:text-white"><fa-icon [icon]="faReceipt" class="mr-2"></fa-icon>Tenders</button>
</li>
Expand Down
1 change: 1 addition & 0 deletions src/app/shared/header/header.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ export class HeaderComponent implements OnInit, AfterViewInit, DoCheck, OnDestro
}
providerThemeName = environment.providerThemeName;
quotesEnabled = environment.QUOTES_ENABLED;
tenderEnabled = environment.TENDER_ENABLED;
qrWindow: Window | null = null;
statePair:string
catalogs: any[] | undefined = [];
Expand Down
1 change: 1 addition & 0 deletions src/environments/environment.development.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ export const environment = {
deleteQuote: '/quote'
},
QUOTES_ENABLED: true,
TENDER_ENABLED: true,
analytics: '',
feedbackCampaign: false,
feedbackCampaignExpiration: 0,
Expand Down
1 change: 1 addition & 0 deletions src/environments/environment.production.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ export const environment = {
deleteQuote: '/quote'
},
QUOTES_ENABLED: true,
TENDER_ENABLED: true,
analytics: '',
feedbackCampaign: false,
feedbackCampaignExpiration: 0,
Expand Down
1 change: 1 addition & 0 deletions src/environments/environment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ export const environment = {
deleteQuote: '/quote'
},
QUOTES_ENABLED: true,
TENDER_ENABLED: true,
analytics: '',
feedbackCampaign: false,
feedbackCampaignExpiration: 0,
Expand Down
Loading