Skip to content
Closed
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
2 changes: 1 addition & 1 deletion app/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "name-request",
"version": "5.8.0",
"version": "5.8.1",
"private": true,
"appName": "Name Request UI",
"sbcName": "SBC Common Components",
Expand Down
18 changes: 12 additions & 6 deletions app/src/components/new-request/stats.vue
Original file line number Diff line number Diff line change
Expand Up @@ -123,20 +123,26 @@ export default class Stats extends Vue {
return (this.getStats?.auto_approved_count ?? '-')
}

/** The regular wait time, in days. */
/**
* The regular wait time, in days.
* @returns value from FF if FF is >= 0, otherwise the value from the API
*/
get regularWaitTime (): string | number {
const regularWaitTime = GetFeatureFlag('hardcoded_regular_wait_time')
if (regularWaitTime > 0) {
const regularWaitTime = GetFeatureFlag('hardcoded_regular_wait_time') as number
if (regularWaitTime >= 0) {
return regularWaitTime
} else {
return (this.getStats?.regular_wait_time ?? '-')
}
}

/** The priority wait time, in hours. */
/**
* The priority wait time, in hours.
* @returns value from FF if FF is >= 0, otherwise the value from the API
*/
get priorityWaitTime (): string | number {
const priorityWaitTime = GetFeatureFlag('hardcoded_priority_wait_time')
if (priorityWaitTime > 0) {
const priorityWaitTime = GetFeatureFlag('hardcoded_priority_wait_time') as number
if (priorityWaitTime >= 0) {
return priorityWaitTime
} else {
return (this.getStats?.priority_wait_time ?? '-')
Expand Down
4 changes: 2 additions & 2 deletions app/src/plugins/launchDarkly.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ const defaultFlagSet: LDFlagSet = {
'enable-priority-checkbox': false, // by default, priority is disabled
'enable-society': false, // by default society is disabled
'enable-web-chat': false, // by default, old webchat is disabled
'hardcoded_priority_wait_time': 0, // by default, use actual wait time
'hardcoded_regular_wait_time': 0, // by default, use actual wait time
'hardcoded_priority_wait_time': -1, // by default, use actual wait time
'hardcoded_regular_wait_time': -1, // by default, use actual wait time
'supported-amalgamation-entities': [],
'supported-continuation-in-entities': [],
'supported-incorporation-registration-entities': [],
Expand Down
Loading