overhauling constants, working on translations
Signed-off-by: Stephan Richter <s.richter@srsoftware.de>
This commit is contained in:
@@ -13,7 +13,7 @@
|
||||
import LineEditor from '../../Components/LineEditor.svelte';
|
||||
|
||||
let {
|
||||
estimated_time,
|
||||
est_time,
|
||||
lastEvent,
|
||||
show_closed,
|
||||
siblings,
|
||||
@@ -137,8 +137,8 @@
|
||||
return {state:0};
|
||||
}
|
||||
|
||||
if (task.estimated_time){
|
||||
estimated_time.sum += task.estimated_time;
|
||||
if (task.est_time){
|
||||
est_time.sum += task.est_time;
|
||||
}
|
||||
|
||||
$effect(() => {
|
||||
@@ -157,8 +157,8 @@
|
||||
{#if !deleted}
|
||||
<li draggable="true" {ondrop} ondragover={e => e.preventDefault()} {ondragstart} class="task {states[task.status]?.toLowerCase()}">
|
||||
<LineEditor bind:value={task.name} onclick={openTask} editable={true} onSet={setName} type="a" href={`/task/${task.id}/view`} />
|
||||
{#if task.estimated_time}
|
||||
<span class="estimated_time">({+task.estimated_time} h)</span>
|
||||
{#if task.est_time}
|
||||
<span class="estimated_time">({+task.est_time} h)</span>
|
||||
{/if}
|
||||
<button class="symbol" title={t('drag_n_drop')}></button>
|
||||
{#if states[task.status] != 'PENDING'}
|
||||
@@ -180,7 +180,7 @@
|
||||
<button class="symbol" title={t('add_object',{object:t('subtask')})} onclick={addSubtask}></button>
|
||||
<button class="symbol" title={t('timetracking')} onclick={addTime}></button>
|
||||
{#if children}
|
||||
<TaskList {states} {lastEvent} tasks={children} {estimated_time} {show_closed} />
|
||||
<TaskList {states} {lastEvent} tasks={children} {est_time} {show_closed} />
|
||||
{/if}
|
||||
</li>
|
||||
{/if}
|
||||
|
||||
Reference in New Issue
Block a user