formatting and linting

This commit is contained in:
Joe 2020-06-26 14:38:29 +01:00
parent 91f562ee8c
commit 13ee292417
3 changed files with 48 additions and 60 deletions

View File

@ -91,9 +91,7 @@
{testResult}
</button>
{/if}
<Button secondary wide on:click={testWorkflow}>
Test Workflow
</Button>
<Button secondary wide on:click={testWorkflow}>Test Workflow</Button>
</div>
{/if}
{#if selectedTab === 'SETUP'}
@ -101,16 +99,13 @@
<WorkflowBlockSetup {workflowBlock} />
<div class="buttons">
<Button
green wide
green
wide
data-cy="save-workflow-setup"
on:click={saveWorkflow}>
Save Workflow
</Button>
<Button
red wide
on:click={deleteWorkflowBlock}>
Delete Block
</Button>
<Button red wide on:click={deleteWorkflowBlock}>Delete Block</Button>
</div>
{:else if $workflowStore.currentWorkflow}
<div class="panel">
@ -142,14 +137,14 @@
</div>
</div>
<div class="buttons">
<Button green wide
<Button
green
wide
data-cy="save-workflow-setup"
on:click={saveWorkflow}>
Save Workflow
</Button>
<Button red wide on:click={deleteWorkflow}>
Delete Workflow
</Button>
<Button red wide on:click={deleteWorkflow}>Delete Workflow</Button>
</div>
</div>
{/if}

View File

@ -18,9 +18,7 @@
<div class="block-field">
<label class="label">{parameter}</label>
{#if Array.isArray(type)}
<select
class="budibase_input"
bind:value={workflowBlock.args[parameter]}>
<select class="budibase_input" bind:value={workflowBlock.args[parameter]}>
{#each type as option}
<option value={option}>{option}</option>
{/each}
@ -28,9 +26,7 @@
{:else if type === 'component'}
<ComponentSelector bind:value={workflowBlock.args[parameter]} />
{:else if type === 'accessLevel'}
<select
class="budibase_input"
bind:value={workflowBlock.args[parameter]}>
<select class="budibase_input" bind:value={workflowBlock.args[parameter]}>
<option value="ADMIN">Admin</option>
<option value="POWER_USER">Power User</option>
</select>
@ -63,7 +59,6 @@
{/each}
<style>
.block-field {
display: grid;
}

View File

@ -28,9 +28,7 @@
</script>
<section>
<Button purple wide on:click{newWorkflow}>
Create New Workflow
</Button>
<Button purple wide on:click{newWorkflow}>Create New Workflow</Button>
<ul>
{#each $workflowStore.workflows as workflow}
<li