feat: hide priority label for done tasks #825
No reviewers
Labels
No Label
area/internal-code
changes requested
confirmed
dependencies
duplicate
good first issue
help wanted
hosting
invalid
kind/bug
kind/feature
question
wontfix
No Milestone
No project
No Assignees
2 Participants
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: vikunja/frontend#825
Loading…
Reference in New Issue
No description provided.
Delete Branch "feature/hide-priority-for-done-tasks"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Resolves #542
@ -42,0 +41,4 @@
},
computed: {
priority() {
return this.task.priority
@dpschen I'm not sure if this could cause mutation errors, what do you think?
Doesn't look like it, since this computed just returns a deep value. Not sure if necessary though. You could just write
task.priority
in the template in this case.Added 👍 I was just being lazy 😅
@ -39,3 +35,4 @@
type: Boolean,
default: false,
},
task: {
Instead of passing the whole task down I would just add
done
as an additional prop. This way there is no deep coupling between the task model and the priority label.I thought about that initially but I think it makes a lot of sense the way you put it. Changed!
8feb0b0c5b
to68e5a5fd8a
Looks good (not allowed to approve)
That sounds like a Gitea bug...