implemented status change from task view
Signed-off-by: Stephan Richter <s.richter@srsoftware.de>
This commit is contained in:
@@ -7,6 +7,7 @@
|
|||||||
import LineEditor from '../../Components/LineEditor.svelte';
|
import LineEditor from '../../Components/LineEditor.svelte';
|
||||||
import TaskList from '../../Components/TaskList.svelte';
|
import TaskList from '../../Components/TaskList.svelte';
|
||||||
import MarkdownEditor from '../../Components/MarkdownEditor.svelte';
|
import MarkdownEditor from '../../Components/MarkdownEditor.svelte';
|
||||||
|
import StateSelector from '../../Components/StateSelector.svelte';
|
||||||
|
|
||||||
const router = useTinyRouter();
|
const router = useTinyRouter();
|
||||||
let { id } = $props();
|
let { id } = $props();
|
||||||
@@ -137,6 +138,12 @@
|
|||||||
<button class="symbol" onclick={() => showSettings = true}></button>
|
<button class="symbol" onclick={() => showSettings = true}></button>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th>{t('state')}</th>
|
||||||
|
<td>
|
||||||
|
<StateSelector selected={task.status.code} onchange={val => update({status:val})}/>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
{#if task.description.rendered}
|
{#if task.description.rendered}
|
||||||
<tr>
|
<tr>
|
||||||
<th>{t('description')}</th>
|
<th>{t('description')}</th>
|
||||||
|
|||||||
@@ -87,7 +87,7 @@ td, tr{
|
|||||||
color: gray;
|
color: gray;
|
||||||
}
|
}
|
||||||
.task.started > span {
|
.task.started > span {
|
||||||
color: green;
|
color: chartreuse;
|
||||||
}
|
}
|
||||||
.task.pending > span {
|
.task.pending > span {
|
||||||
color: gray;
|
color: gray;
|
||||||
|
|||||||
Reference in New Issue
Block a user