File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -53,10 +53,12 @@ interface Props {
5353 todo: TodoDetailItem | null
5454 friends? : TaggableFriend []
5555 startInEditMode? : boolean
56+ showBackToList? : boolean
5657}
5758
5859const 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')"
Original file line number Diff line number Diff 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 "
You can’t perform that action at this time.
0 commit comments