refactor: make FlowchartTab eval button conditional on onRun prop
This commit is contained in:
parent
8e89fde3c1
commit
7e1139e7d1
|
|
@ -93,6 +93,7 @@
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<div class="flowchart-container">
|
<div class="flowchart-container">
|
||||||
|
{#if onRun}
|
||||||
<button
|
<button
|
||||||
type="button"
|
type="button"
|
||||||
class="floating-action-btn"
|
class="floating-action-btn"
|
||||||
|
|
@ -103,6 +104,7 @@
|
||||||
<span class="btn-icon">{compiling ? '⌛' : '▶'}</span>
|
<span class="btn-icon">{compiling ? '⌛' : '▶'}</span>
|
||||||
<span class="btn-text">{compiling ? 'Mengevaluasi...' : 'Cek Flowchart'}</span>
|
<span class="btn-text">{compiling ? 'Mengevaluasi...' : 'Cek Flowchart'}</span>
|
||||||
</button>
|
</button>
|
||||||
|
{/if}
|
||||||
|
|
||||||
{#if storageKey}
|
{#if storageKey}
|
||||||
<div class="storage-indicator-inline" title={saving ? "Menyimpan draf..." : "Draf tersimpan di browser"}>
|
<div class="storage-indicator-inline" title={saving ? "Menyimpan draf..." : "Draf tersimpan di browser"}>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue