formatting and linting
This commit is contained in:
parent
4a6c7e5a06
commit
9d43d0295b
3 changed files with 48 additions and 60 deletions
|
@ -91,9 +91,7 @@
|
||||||
{testResult}
|
{testResult}
|
||||||
</button>
|
</button>
|
||||||
{/if}
|
{/if}
|
||||||
<Button secondary wide on:click={testWorkflow}>
|
<Button secondary wide on:click={testWorkflow}>Test Workflow</Button>
|
||||||
Test Workflow
|
|
||||||
</Button>
|
|
||||||
</div>
|
</div>
|
||||||
{/if}
|
{/if}
|
||||||
{#if selectedTab === 'SETUP'}
|
{#if selectedTab === 'SETUP'}
|
||||||
|
@ -101,16 +99,13 @@
|
||||||
<WorkflowBlockSetup {workflowBlock} />
|
<WorkflowBlockSetup {workflowBlock} />
|
||||||
<div class="buttons">
|
<div class="buttons">
|
||||||
<Button
|
<Button
|
||||||
green wide
|
green
|
||||||
|
wide
|
||||||
data-cy="save-workflow-setup"
|
data-cy="save-workflow-setup"
|
||||||
on:click={saveWorkflow}>
|
on:click={saveWorkflow}>
|
||||||
Save Workflow
|
Save Workflow
|
||||||
</Button>
|
</Button>
|
||||||
<Button
|
<Button red wide on:click={deleteWorkflowBlock}>Delete Block</Button>
|
||||||
red wide
|
|
||||||
on:click={deleteWorkflowBlock}>
|
|
||||||
Delete Block
|
|
||||||
</Button>
|
|
||||||
</div>
|
</div>
|
||||||
{:else if $workflowStore.currentWorkflow}
|
{:else if $workflowStore.currentWorkflow}
|
||||||
<div class="panel">
|
<div class="panel">
|
||||||
|
@ -142,14 +137,14 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="buttons">
|
<div class="buttons">
|
||||||
<Button green wide
|
<Button
|
||||||
|
green
|
||||||
|
wide
|
||||||
data-cy="save-workflow-setup"
|
data-cy="save-workflow-setup"
|
||||||
on:click={saveWorkflow}>
|
on:click={saveWorkflow}>
|
||||||
Save Workflow
|
Save Workflow
|
||||||
</Button>
|
</Button>
|
||||||
<Button red wide on:click={deleteWorkflow}>
|
<Button red wide on:click={deleteWorkflow}>Delete Workflow</Button>
|
||||||
Delete Workflow
|
|
||||||
</Button>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{/if}
|
{/if}
|
||||||
|
|
|
@ -18,9 +18,7 @@
|
||||||
<div class="block-field">
|
<div class="block-field">
|
||||||
<label class="label">{parameter}</label>
|
<label class="label">{parameter}</label>
|
||||||
{#if Array.isArray(type)}
|
{#if Array.isArray(type)}
|
||||||
<select
|
<select class="budibase_input" bind:value={workflowBlock.args[parameter]}>
|
||||||
class="budibase_input"
|
|
||||||
bind:value={workflowBlock.args[parameter]}>
|
|
||||||
{#each type as option}
|
{#each type as option}
|
||||||
<option value={option}>{option}</option>
|
<option value={option}>{option}</option>
|
||||||
{/each}
|
{/each}
|
||||||
|
@ -28,9 +26,7 @@
|
||||||
{:else if type === 'component'}
|
{:else if type === 'component'}
|
||||||
<ComponentSelector bind:value={workflowBlock.args[parameter]} />
|
<ComponentSelector bind:value={workflowBlock.args[parameter]} />
|
||||||
{:else if type === 'accessLevel'}
|
{:else if type === 'accessLevel'}
|
||||||
<select
|
<select class="budibase_input" bind:value={workflowBlock.args[parameter]}>
|
||||||
class="budibase_input"
|
|
||||||
bind:value={workflowBlock.args[parameter]}>
|
|
||||||
<option value="ADMIN">Admin</option>
|
<option value="ADMIN">Admin</option>
|
||||||
<option value="POWER_USER">Power User</option>
|
<option value="POWER_USER">Power User</option>
|
||||||
</select>
|
</select>
|
||||||
|
@ -63,7 +59,6 @@
|
||||||
{/each}
|
{/each}
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
|
|
||||||
.block-field {
|
.block-field {
|
||||||
display: grid;
|
display: grid;
|
||||||
}
|
}
|
||||||
|
|
|
@ -28,9 +28,7 @@
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<section>
|
<section>
|
||||||
<Button purple wide on:click{newWorkflow}>
|
<Button purple wide on:click{newWorkflow}>Create New Workflow</Button>
|
||||||
Create New Workflow
|
|
||||||
</Button>
|
|
||||||
<ul>
|
<ul>
|
||||||
{#each $workflowStore.workflows as workflow}
|
{#each $workflowStore.workflows as workflow}
|
||||||
<li
|
<li
|
||||||
|
|
Loading…
Reference in a new issue