Skip to content

Commit dd3c721

Browse files
committed
fix: Hide board action on todo board modal
1 parent e949cd3 commit dd3c721

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

frontend/src/components/duty/TodoDetailModal.vue

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,12 @@ interface Props {
5353
todo: TodoDetailItem | null
5454
friends?: TaggableFriend[]
5555
startInEditMode?: boolean
56+
showBackToList?: boolean
5657
}
5758
5859
const props = withDefaults(defineProps<Props>(), {
5960
startInEditMode: false,
61+
showBackToList: true,
6062
friends: () => [],
6163
})
6264
@@ -463,6 +465,7 @@ function onUploadError(message: string) {
463465
<template v-if="!isEditMode">
464466
<div class="flex flex-wrap items-center justify-between gap-2">
465467
<button
468+
v-if="showBackToList"
466469
@click="emit('backToList')"
467470
class="flex min-h-11 items-center gap-1 px-3 py-2 text-sm rounded-lg transition btn-outline cursor-pointer"
468471
:title="t('duty.todo.actions.backToList')"

frontend/src/views/todo/TodoBoardView.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -661,6 +661,7 @@ onBeforeUnmount(() => {
661661
:todo="selectedTodo"
662662
:friends="friends"
663663
:start-in-edit-mode="startInEditMode"
664+
:show-back-to-list="false"
664665
@close="closeDetailModal"
665666
@update="handleUpdateTodo"
666667
@complete="handleCompleteTodo"

0 commit comments

Comments
 (0)