implemented updating of projects
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
<script>
|
||||
import { activeField } from './field_sync.svelte.js';
|
||||
import { t } from '../translations.svelte.js';
|
||||
|
||||
let { editable = false, value = $bindable(null), onSet = (newVal) => {return true;} } = $props();
|
||||
let editing = $state(false);
|
||||
@@ -47,5 +48,5 @@
|
||||
{#if editable && editing}
|
||||
<input bind:value={editValue} onkeyup={typed} autofocus />
|
||||
{:else}
|
||||
<div onclick={startEdit} class={{editable}}>{value}</div>
|
||||
<div ondblclick={startEdit} class={{editable}} title={t('double_click_to_edit')} >{value}</div>
|
||||
{/if}
|
||||
|
||||
Reference in New Issue
Block a user