mirror of
https://github.com/solidtime-io/solidtime.git
synced 2026-08-17 04:32:15 +01:00
add basic crud frontend for clients, tags and projects
This commit is contained in:
@@ -56,7 +56,7 @@ watch(focused, (newValue, oldValue) => {
|
||||
<template #content>
|
||||
<div
|
||||
ref="dropdownContent"
|
||||
class="grid grid-cols-2 divide-x divide-card-background-seperator text-center py-1">
|
||||
class="grid grid-cols-2 divide-x divide-card-background-separator text-center py-1">
|
||||
<div>
|
||||
<div class="font-bold text-white text-sm pb-1">
|
||||
Start
|
||||
|
||||
@@ -74,6 +74,11 @@ function deleteTimeEntry() {
|
||||
function updateTimeEntryDescription(description: string) {
|
||||
updateTimeEntry({ ...props.timeEntry, description });
|
||||
}
|
||||
|
||||
function updateTimeEntryTags(tags: string[]) {
|
||||
console.log(tags);
|
||||
updateTimeEntry({ ...props.timeEntry, tags });
|
||||
}
|
||||
</script>
|
||||
|
||||
<template>
|
||||
@@ -97,7 +102,7 @@ function updateTimeEntryDescription(description: string) {
|
||||
</div>
|
||||
<div class="flex items-center font-medium space-x-2">
|
||||
<TimeEntryRowTagDropdown
|
||||
@changed="updateTimeEntry(timeEntry)"
|
||||
@changed="updateTimeEntryTags"
|
||||
:modelValue="timeEntry.tags"></TimeEntryRowTagDropdown>
|
||||
<div>
|
||||
<TimeEntryRangeSelector
|
||||
|
||||
@@ -19,7 +19,7 @@ const timeEntryTags = computed<Tag[]>(() => {
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<TagDropdown @changed="emit('changed')" v-model="model">
|
||||
<TagDropdown @changed="emit('changed', model)" v-model="model">
|
||||
<template #trigger>
|
||||
<button data-testid="time_entry_tag_dropdown">
|
||||
<TagBadge
|
||||
|
||||
Reference in New Issue
Block a user