diff --git a/src/i18n/lang/en.json b/src/i18n/lang/en.json index 1e14b333..5cd14c0c 100644 --- a/src/i18n/lang/en.json +++ b/src/i18n/lang/en.json @@ -527,6 +527,7 @@ "deleteSuccess": "The task has been deleted successfully.", "belongsToList": "This task belongs to list '{list}'", "due": "Due {at}", + "closePopup": "Close popup", "delete": { "header": "Delete this task", "text1": "Are you sure you want to remove this task?", diff --git a/src/icons.js b/src/icons.js index f0f59e80..e050d3bd 100644 --- a/src/icons.js +++ b/src/icons.js @@ -3,6 +3,7 @@ import { faAlignLeft, faAngleRight, faArchive, + faArrowLeft, faBars, faBell, faCalendar, @@ -67,6 +68,7 @@ import {FontAwesomeIcon} from '@fortawesome/vue-fontawesome' library.add(faAlignLeft) library.add(faAngleRight) library.add(faArchive) +library.add(faArrowLeft) library.add(faBars) library.add(faBell) library.add(faBellSlash) diff --git a/src/views/tasks/TaskDetailView.vue b/src/views/tasks/TaskDetailView.vue index b27f3ef6..c48e9d40 100644 --- a/src/views/tasks/TaskDetailView.vue +++ b/src/views/tasks/TaskDetailView.vue @@ -8,7 +8,7 @@ {{ getListTitle(parent.list) }} - + @@ -246,138 +246,146 @@ -
- - {{ task.done ? $t('task.detail.undone') : $t('task.detail.done') }} - - - - - {{ $t('task.detail.actions.assign') }} - - - {{ $t('task.detail.actions.label') }} - - - {{ $t('task.detail.actions.priority') }} - - - {{ $t('task.detail.actions.dueDate') }} - - - {{ $t('task.detail.actions.startDate') }} - - - {{ $t('task.detail.actions.endDate') }} - - - {{ $t('task.detail.actions.reminders') }} - - - {{ $t('task.detail.actions.repeatAfter') }} - - - {{ $t('task.detail.actions.percentDone') }} - - - {{ $t('task.detail.actions.attachments') }} - - - {{ $t('task.detail.actions.relatedTasks') }} - - - {{ $t('task.detail.actions.moveList') }} - - - {{ $t('task.detail.actions.color') }} - - - {{ task.isFavorite ? $t('task.detail.actions.unfavorite') : $t('task.detail.actions.favorite') }} - - - {{ $t('task.detail.actions.delete') }} - +
+ + + {{ $t('task.detail.closePopup') }} + +

@@ -410,10 +418,10 @@ v-if="showDeleteModal" > - + @@ -520,7 +528,7 @@ export default { }, computed: { taskId() { - const { id } = this.$route.params + const {id} = this.$route.params return id === undefined ? id : Number(id) }, currentList() { @@ -558,6 +566,9 @@ export default { hasAttachments() { return this.$store.state.attachments.attachments.length > 0 }, + shouldShowClosePopup() { + return this.$route.name.includes('kanban') + }, }, methods: { attachmentUpload(...args) { diff --git a/src/views/tasks/TaskDetailViewModal.vue b/src/views/tasks/TaskDetailViewModal.vue index d79339f9..6deb7421 100644 --- a/src/views/tasks/TaskDetailViewModal.vue +++ b/src/views/tasks/TaskDetailViewModal.vue @@ -57,7 +57,7 @@ export default { font-size: 2rem; @media screen and (max-width: $desktop) { - display: none; + color: $dark; } } \ No newline at end of file