formatting and linting
This commit is contained in:
parent
91f562ee8c
commit
13ee292417
|
@ -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}
|
||||||
|
|
|
@ -17,53 +17,48 @@
|
||||||
{#each workflowParams as [parameter, type]}
|
{#each workflowParams as [parameter, type]}
|
||||||
<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"
|
{#each type as option}
|
||||||
bind:value={workflowBlock.args[parameter]}>
|
<option value={option}>{option}</option>
|
||||||
{#each type as option}
|
{/each}
|
||||||
<option value={option}>{option}</option>
|
</select>
|
||||||
{/each}
|
{:else if type === 'component'}
|
||||||
</select>
|
<ComponentSelector bind:value={workflowBlock.args[parameter]} />
|
||||||
{:else if type === 'component'}
|
{:else if type === 'accessLevel'}
|
||||||
<ComponentSelector bind:value={workflowBlock.args[parameter]} />
|
<select class="budibase_input" bind:value={workflowBlock.args[parameter]}>
|
||||||
{:else if type === 'accessLevel'}
|
<option value="ADMIN">Admin</option>
|
||||||
<select
|
<option value="POWER_USER">Power User</option>
|
||||||
class="budibase_input"
|
</select>
|
||||||
bind:value={workflowBlock.args[parameter]}>
|
{:else if type === 'password'}
|
||||||
<option value="ADMIN">Admin</option>
|
<input
|
||||||
<option value="POWER_USER">Power User</option>
|
type="password"
|
||||||
</select>
|
class="budibase_input"
|
||||||
{:else if type === 'password'}
|
bind:value={workflowBlock.args[parameter]} />
|
||||||
<input
|
{:else if type === 'number'}
|
||||||
type="password"
|
<input
|
||||||
class="budibase_input"
|
type="number"
|
||||||
bind:value={workflowBlock.args[parameter]} />
|
class="budibase_input"
|
||||||
{:else if type === 'number'}
|
bind:value={workflowBlock.args[parameter]} />
|
||||||
<input
|
{:else if type === 'longText'}
|
||||||
type="number"
|
<textarea
|
||||||
class="budibase_input"
|
type="text"
|
||||||
bind:value={workflowBlock.args[parameter]} />
|
class="budibase_input"
|
||||||
{:else if type === 'longText'}
|
bind:value={workflowBlock.args[parameter]} />
|
||||||
<textarea
|
{:else if type === 'model'}
|
||||||
type="text"
|
<ModelSelector bind:value={workflowBlock.args[parameter]} />
|
||||||
class="budibase_input"
|
{:else if type === 'record'}
|
||||||
bind:value={workflowBlock.args[parameter]} />
|
<RecordSelector bind:value={workflowBlock.args[parameter]} />
|
||||||
{:else if type === 'model'}
|
{:else if type === 'string'}
|
||||||
<ModelSelector bind:value={workflowBlock.args[parameter]} />
|
<input
|
||||||
{:else if type === 'record'}
|
type="text"
|
||||||
<RecordSelector bind:value={workflowBlock.args[parameter]} />
|
class="budibase_input"
|
||||||
{:else if type === 'string'}
|
bind:value={workflowBlock.args[parameter]} />
|
||||||
<input
|
{/if}
|
||||||
type="text"
|
</div>
|
||||||
class="budibase_input"
|
|
||||||
bind:value={workflowBlock.args[parameter]} />
|
|
||||||
{/if}
|
|
||||||
</div>
|
|
||||||
{/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 New Issue