6.19.3: Навигация на редактирование из диалога задачи
Some checks failed
Build and Push Docker Image / build-and-push (push) Failing after 1m15s

This commit is contained in:
poignatov
2026-03-17 10:37:02 +03:00
parent 2104fea5e2
commit dff929c52c
4 changed files with 8 additions and 5 deletions

View File

@@ -348,7 +348,7 @@ function EditEntryModal({ entry, onClose, onSuccess, authFetch }) {
: modalContent
}
function TodayEntriesList({ data, loading, error, onRetry, onDelete }) {
function TodayEntriesList({ data, loading, error, onRetry, onDelete, onNavigate }) {
const { authFetch } = useAuth()
const [deletingIds, setDeletingIds] = useState(new Set())
const [selectedTaskId, setSelectedTaskId] = useState(null)
@@ -390,10 +390,11 @@ function TodayEntriesList({ data, loading, error, onRetry, onDelete }) {
setSelectedTaskId(taskId)
}
const handleCloseTaskDetail = () => {
if (historyPushedRef.current) {
const handleCloseTaskDetail = (skipHistoryBack = false) => {
if (!skipHistoryBack && historyPushedRef.current) {
window.history.back()
} else {
historyPushedRef.current = false
setSelectedTaskId(null)
}
}
@@ -606,6 +607,7 @@ function TodayEntriesList({ data, loading, error, onRetry, onDelete }) {
taskId={selectedTaskId}
onClose={handleCloseTaskDetail}
onRefresh={handleTaskSaved}
onNavigate={onNavigate}
/>
)}
{editingEntry && (