-
Notifications
You must be signed in to change notification settings - Fork 98
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding DONE to task status options #499
base: develop
Are you sure you want to change the base?
Changes from 6 commits
56bda08
70971c6
cad584e
53d935f
afd9f37
d25e635
51d7cad
9d2c982
0d93af1
a6c862f
e31c3ea
f620715
e82b4a2
67d6573
b116a97
1d94049
f24d0e0
202bfcc
d84b4cc
2a94838
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,12 +32,25 @@ | |
> | ||
{{#each this.availabletaskStatusList as |taskStatus|}} | ||
{{#if (not-eq taskStatus.key this.TASK_KEYS.ALL)}} | ||
<option | ||
value={{taskStatus.key}} | ||
selected={{eq taskStatus.key this.status}} | ||
> | ||
{{taskStatus.displayLabel}} | ||
</option> | ||
{{#if @dev}} | ||
{{#if (not (or (eq taskStatus.key this.TASK_KEYS.AVAILABLE) (eq taskStatus.key this.TASK_KEYS.COMPLETED)))}} | ||
<option | ||
value={{taskStatus.key}} | ||
selected={{eq taskStatus.key this.status}} | ||
> | ||
{{taskStatus.displayLabel}} | ||
</option> | ||
{{/if}} | ||
{{else}} | ||
{{#if (not (or (eq taskStatus.key this.TASK_KEYS.DONE)))}} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If we add new logic under the old flow, won't it defeat the purpose of adding a feature flag? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We have added new task status to constants file. So have to do this. |
||
<option | ||
value={{taskStatus.key}} | ||
selected={{eq taskStatus.key this.status}} | ||
> | ||
{{taskStatus.displayLabel}} | ||
</option> | ||
{{/if}} | ||
{{/if}} | ||
{{/if}} | ||
{{/each}} | ||
</select> | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Instead of adding conditions inside a loop to populate the task status, can we just have two separate availableTaskStatusList?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You meant to maintain two seperate lists in the constants file itself?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes. Something like that where we don't have to write extra logic to maintain the old flow.