focus on description after starting time tracker, ST-254

This commit is contained in:
Gregor Vostrak
2024-06-18 18:28:45 +02:00
parent 0c054bdcf2
commit 0121195e75
4 changed files with 43 additions and 26 deletions

View File

@@ -8,7 +8,7 @@ import TimeTrackerStartStop from '@/Components/Common/TimeTrackerStartStop.vue';
import { getCurrentOrganizationId } from '@/utils/useUser';
const store = useCurrentTimeEntryStore();
const { currentTimeEntry, now, isActive } = storeToRefs(store);
const { onToggleButtonPress } = store;
const { setActiveState } = store;
const currentTime = computed(() => {
if (now.value && currentTimeEntry.value.start) {
@@ -50,7 +50,7 @@ const isRunningInDifferentOrganization = computed(() => {
</div>
<TimeTrackerStartStop
:active="isActive"
@changed="onToggleButtonPress"
@changed="setActiveState"
size="base"></TimeTrackerStartStop>
</div>
</template>