Cahnges in Projektzeiten and Naming

This commit is contained in:
2025-06-07 16:33:57 +02:00
parent bab0187467
commit 96cd94d77f
4 changed files with 40 additions and 25 deletions

View File

@@ -125,7 +125,7 @@ const links = computed(() => {
icon: "i-heroicons-user-group",
children: [
... profileStore.ownTenant.features.timeTracking ? [{
label: "Zeiterfassung",
label: "Projektzeiten",
to: "/times",
icon: "i-heroicons-clock"
}] : [],

View File

@@ -43,9 +43,9 @@ const startTime = async () => {
.select()
if(error) {
console.log(error)
toast.add({title: "Fehler beim starten der Zeit",color:"rose"})
toast.add({title: "Fehler beim starten der Projektzeit",color:"rose"})
} else if(data) {
toast.add({title: "Zeit erfolgreich gestartet"})
toast.add({title: "Projektzeit erfolgreich gestartet"})
runningTimeInfo.value = data[0]
//console.log(runningTimeInfo.value)
}
@@ -63,11 +63,11 @@ const stopStartedTime = async () => {
if(error) {
console.log(error)
let errorId = await useError().logError(`${status} - ${JSON.stringify(error)}`)
toast.add({title: errorId ? `Fehler beim stoppen der Zeit (Fehler ID: ${errorId})` : `Fehler beim stoppen der Zeit`,color:"rose"})
toast.add({title: errorId ? `Fehler beim stoppen der Projektzeit (Fehler ID: ${errorId})` : `Fehler beim stoppen der Projektzeit`,color:"rose"})
} else {
toast.add({title: "Zeit erfolgreich gestoppt"})
toast.add({title: "Projektzeit erfolgreich gestoppt"})
runningTimeInfo.value = {}
}
}
@@ -111,7 +111,7 @@ const stopStartedTime = async () => {
</UButton>
</div>
<div v-else>
<p>Keine Zeit gestartet</p>
<p>Keine Projektzeit gestartet</p>
<UButton
class="mt-3"
@click="startTime"