preparing creation of new times
Signed-off-by: Stephan Richter <s.richter@srsoftware.de>
This commit is contained in:
16
frontend/src/routes/time/AddTask.svelte
Normal file
16
frontend/src/routes/time/AddTask.svelte
Normal file
@@ -0,0 +1,16 @@
|
||||
<script>
|
||||
import { onMount } from 'svelte';
|
||||
import { api } from '../../urls.svelte.js';
|
||||
import { t } from '../../translations.svelte.js';
|
||||
|
||||
let { task_id } = $props();
|
||||
|
||||
async function addTask(){
|
||||
const url = api(`time/add_task/${task_id}`);
|
||||
const resp = await fetch(url,{credentials:'include'}); // create new time or return time with assigned tasks
|
||||
}
|
||||
|
||||
onMount(addTask)
|
||||
</script>
|
||||
|
||||
{t('timetracking')}
|
||||
Reference in New Issue
Block a user