Cahnges in Projektzeiten and Naming
This commit is contained in:
@@ -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"
|
||||
}] : [],
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user