From 357dbc1c693b90132d2b12caaa1e6dd0f6bcd1aa Mon Sep 17 00:00:00 2001 From: Leonardo Cossutta Date: Wed, 19 Mar 2025 12:56:19 +0000 Subject: [PATCH] feat(labels): show priority labels based on minimum priority setting (#3075) I think showing the priority of a task regardless of its value can be useful, the option for the user to choose the minimum priority for visualization is exposed in the settings. The default value is `priority.HIGH`, that corresponds to the current behavior. Co-authored-by: konrad Reviewed-on: https://kolaente.dev/vikunja/vikunja/pulls/3075 Reviewed-by: konrad Co-authored-by: Leonardo Cossutta Co-committed-by: Leonardo Cossutta --- frontend/src/components/misc/Icon.ts | 2 ++ .../tasks/partials/PriorityLabel.vue | 31 ++++++++++++++----- frontend/src/i18n/lang/en.json | 1 + frontend/src/modelTypes/IUserSettings.ts | 4 ++- frontend/src/models/userSettings.ts | 2 ++ frontend/src/views/user/settings/General.vue | 27 ++++++++++++++++ 6 files changed, 59 insertions(+), 8 deletions(-) diff --git a/frontend/src/components/misc/Icon.ts b/frontend/src/components/misc/Icon.ts index ebd9ce7cd..f248e1a33 100644 --- a/frontend/src/components/misc/Icon.ts +++ b/frontend/src/components/misc/Icon.ts @@ -28,6 +28,7 @@ import { faDownload, faEllipsisH, faEllipsisV, + faExclamation, faExclamationCircle, faEye, faEyeSlash, @@ -193,6 +194,7 @@ library.add(faFont) library.add(faRulerHorizontal) library.add(faUnderline) library.add(faFaceLaugh) +library.add(faExclamation) // overwriting the wrong types export default FontAwesomeIcon as unknown as FontAwesomeIconFixedTypes \ No newline at end of file diff --git a/frontend/src/components/tasks/partials/PriorityLabel.vue b/frontend/src/components/tasks/partials/PriorityLabel.vue index d1f1ccdf9..894af1aa7 100644 --- a/frontend/src/components/tasks/partials/PriorityLabel.vue +++ b/frontend/src/components/tasks/partials/PriorityLabel.vue @@ -1,17 +1,22 @@