Merge branch 'main' into module/stock
This commit is contained in:
@@ -17,9 +17,9 @@
|
||||
{#if field}
|
||||
<div class={field.name}>
|
||||
{#if field.value.includes('\\n')}
|
||||
<MultiLineEditor type="div" editable={true} value={field.value.replaceAll('\\n','\n')} {onSet} title={t(field.name)+' – '+t('long_click_to_edit')} />
|
||||
<MultiLineEditor type="div" editable={true} value={field.value.replaceAll('\\n','\n')} {onSet} title={t(field.name)+' – '+t('right_click_to_edit')} />
|
||||
{:else}
|
||||
<LineEditor type="div" editable={true} value={field.value} {onSet} title={t(field.name)+' – '+t('long_click_to_edit')} />
|
||||
<LineEditor type="div" editable={true} value={field.value} {onSet} title={t(field.name)+' – '+t('click_to_edit')} />
|
||||
{/if}
|
||||
</div>
|
||||
{/if}
|
||||
@@ -23,7 +23,6 @@
|
||||
let tasks = $state({});
|
||||
let users = {};
|
||||
let columns = $derived(project.allowed_states?Object.keys(project.allowed_states).length+1:1);
|
||||
const controller = new AbortController();
|
||||
|
||||
$effect(() => updateUrl(filter_input));
|
||||
|
||||
@@ -175,8 +174,7 @@
|
||||
}
|
||||
|
||||
function openTask(task_id){
|
||||
controller.abort();
|
||||
router.navigate(`/task/${task_id}/view`)
|
||||
window.open(`/task/${task_id}/view`, '_blank').focus();
|
||||
}
|
||||
|
||||
async function save_bookmark(){
|
||||
|
||||
@@ -210,9 +210,7 @@
|
||||
</div>
|
||||
{#if task.description}
|
||||
<div>{t('description')}</div>
|
||||
<div class="description">
|
||||
<MarkdownEditor bind:value={task.description} editable={true} onSet={val => update({description:val})} />
|
||||
</div>
|
||||
<MarkdownEditor bind:value={task.description} editable={true} onSet={val => update({description:val})} />
|
||||
{/if}
|
||||
{#if !showSettings && task.start_date}
|
||||
<div>{t('start_date')}</div>
|
||||
@@ -277,6 +275,10 @@
|
||||
</ul>
|
||||
</div>
|
||||
{/if}
|
||||
<div>{t('tags')}</div>
|
||||
<div class="tags">
|
||||
<TagList module="task" {id} user_list={Object.keys(task.members).map(id => +id)} />
|
||||
</div>
|
||||
|
||||
<div>
|
||||
{t('subtasks')}
|
||||
@@ -288,10 +290,6 @@
|
||||
{/if}
|
||||
</div>
|
||||
|
||||
<div>{t('tags')}</div>
|
||||
<div class="tags">
|
||||
<TagList module="task" {id} user_list={Object.keys(task.members).map(id => +id)} />
|
||||
</div>
|
||||
<h3>{t('notes')}</h3>
|
||||
<div>
|
||||
<Notes module="task" entity_id={id} />
|
||||
|
||||
@@ -244,7 +244,7 @@
|
||||
{time.duration.toFixed(3)} h
|
||||
{/if}
|
||||
</td>
|
||||
<td class="user">
|
||||
<td class="user" onclick={e => {detail = time.id}}>
|
||||
{users[time.user_id].name}
|
||||
</td>
|
||||
<td class="subject" onclick={e => {detail = time.id}}>
|
||||
|
||||
Reference in New Issue
Block a user