not sandpints key/values...
This commit is contained in:
parent
40d853e9c4
commit
939e813228
2 changed files with 21 additions and 6 deletions
|
@ -303,7 +303,7 @@
|
|||
{:else if fmItems[0] == "notsand"}
|
||||
<div class="fmMeta">
|
||||
<div class="fmMetaTitle">
|
||||
{fmItems[0]}<button
|
||||
Not Sandpoints<button
|
||||
type="button"
|
||||
on:click={() => removeTier(fmItems[0], fmItem)}
|
||||
on:mouseover={fmItemDottedBorder}
|
||||
|
@ -311,7 +311,7 @@
|
|||
>
|
||||
</div>
|
||||
<div class="fmItem">
|
||||
<SpNotsand />
|
||||
<SpNotsand {fmItem}/>
|
||||
</div>
|
||||
</div>
|
||||
{/if}
|
||||
|
|
|
@ -1,4 +1,19 @@
|
|||
<label for="notsandkey">Key:</label>
|
||||
<input class="notsandkey" type="text" name="notsandkey" />
|
||||
<label for="notsandvalue">Value:</label>
|
||||
<input class="notsandvalue" type="text" name="notsandvalue" />
|
||||
<script>
|
||||
import { onMount } from "svelte";
|
||||
export let fmItem;
|
||||
|
||||
let id = "";
|
||||
let notsandkey = "";
|
||||
let notsandvalue = "";
|
||||
|
||||
onMount(() => {
|
||||
id = Math.random();
|
||||
notsandkey = `notsandkey_${id}`;
|
||||
notsandvalue = `notsandvalue_${id}`;
|
||||
});
|
||||
</script>
|
||||
|
||||
<label for={notsandkey}>Key:</label>
|
||||
<input class="notsandkey" type="text" name={notsandkey} value={!fmItem.fmKey.startsWith("_new") ? fmItem.fmKey : ""} />
|
||||
<label for={notsandvalue}>Value:</label>
|
||||
<input class="notsandvalue" type="text" name={notsandvalue} value={fmItem.fmValue ? JSON.stringify(fmItem.fmValue) : ""} />
|
||||
|
|
Loading…
Add table
Reference in a new issue