cleaning up javascript code
This commit is contained in:
@@ -1,9 +1,14 @@
|
||||
<script>
|
||||
import { activeField } from './field_sync.svelte.js';
|
||||
|
||||
let { editable = false, currency, value = $bindable(null), onSet = (newVal) => {} } = $props();
|
||||
let editing = $state(false);
|
||||
let {
|
||||
editable = false,
|
||||
currency,
|
||||
onSet = (newVal) => {},
|
||||
value = $bindable(null)
|
||||
} = $props();
|
||||
|
||||
let editing = $state(false);
|
||||
let editValue = value/100;
|
||||
|
||||
async function applyEdit(){
|
||||
@@ -14,7 +19,7 @@
|
||||
|
||||
function resetEdit(){
|
||||
editValue = value/100;
|
||||
editing = false;
|
||||
editing = false;
|
||||
}
|
||||
|
||||
function startEdit(){
|
||||
|
||||
Reference in New Issue
Block a user