commit
51d9f23aee
|
@ -50,7 +50,7 @@
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@budibase/bbui": "^1.10.1",
|
"@budibase/bbui": "^1.10.2",
|
||||||
"@budibase/client": "^0.0.32",
|
"@budibase/client": "^0.0.32",
|
||||||
"@nx-js/compiler-util": "^2.0.0",
|
"@nx-js/compiler-util": "^2.0.0",
|
||||||
"codemirror": "^5.51.0",
|
"codemirror": "^5.51.0",
|
||||||
|
|
|
@ -8,6 +8,7 @@
|
||||||
import { EVENT_TYPE_MEMBER_NAME } from "components/common/eventHandlers"
|
import { EVENT_TYPE_MEMBER_NAME } from "components/common/eventHandlers"
|
||||||
import { store, workflowStore } from "builderStore"
|
import { store, workflowStore } from "builderStore"
|
||||||
import { ArrowDownIcon } from "components/common/Icons/"
|
import { ArrowDownIcon } from "components/common/Icons/"
|
||||||
|
import { createEventDispatcher } from 'svelte'
|
||||||
|
|
||||||
export let parameter
|
export let parameter
|
||||||
|
|
||||||
|
@ -25,6 +26,7 @@
|
||||||
{/if}
|
{/if}
|
||||||
{#if parameter.name === 'workflow'}
|
{#if parameter.name === 'workflow'}
|
||||||
<Select on:change bind:value={parameter.value}>
|
<Select on:change bind:value={parameter.value}>
|
||||||
|
<option value=""></option>
|
||||||
{#each $workflowStore.workflows.filter(wf => wf.live) as workflow}
|
{#each $workflowStore.workflows.filter(wf => wf.live) as workflow}
|
||||||
<option value={workflow._id}>{workflow.name}</option>
|
<option value={workflow._id}>{workflow.name}</option>
|
||||||
{/each}
|
{/each}
|
||||||
|
|
|
@ -38,19 +38,19 @@ export default {
|
||||||
label: "Type",
|
label: "Type",
|
||||||
control: OptionSelect,
|
control: OptionSelect,
|
||||||
options: [
|
options: [
|
||||||
{ label: "article" },
|
"article",
|
||||||
{ label: "aside" },
|
"aside",
|
||||||
{ label: "details" },
|
"details",
|
||||||
{ label: "div" },
|
"div",
|
||||||
{ label: "figure" },
|
"figure",
|
||||||
{ label: "figcaption" },
|
"figcaption",
|
||||||
{ label: "footer" },
|
"footer",
|
||||||
{ label: "header" },
|
"header",
|
||||||
{ label: "main" },
|
"main",
|
||||||
{ label: "mark" },
|
"mark",
|
||||||
{ label: "nav" },
|
"nav",
|
||||||
{ label: "paragraph" },
|
"paragraph",
|
||||||
{ label: "summary" },
|
"summary",
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
|
|
@ -12,10 +12,14 @@
|
||||||
{
|
{
|
||||||
name: "Admin",
|
name: "Admin",
|
||||||
key: "ADMIN",
|
key: "ADMIN",
|
||||||
|
canExecute: true,
|
||||||
|
editable: false,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: "Power User",
|
name: "Power User",
|
||||||
key: "POWER_USER",
|
key: "POWER_USER",
|
||||||
|
canExecute: true,
|
||||||
|
editable: false,
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
|
|
||||||
|
@ -123,16 +127,22 @@
|
||||||
<div class="config-item">
|
<div class="config-item">
|
||||||
<label class="uk-form-label">User Access</label>
|
<label class="uk-form-label">User Access</label>
|
||||||
<div class="access-levels">
|
<div class="access-levels">
|
||||||
{#each ACCESS_LEVELS as { name, key }}
|
{#each ACCESS_LEVELS as level}
|
||||||
<span class="access-level">
|
<span class="access-level">
|
||||||
<label>{name}</label>
|
<label>{level.name}</label>
|
||||||
<input class="uk-checkbox" type="checkbox" />
|
<input class="uk-checkbox" type="checkbox" disabled={!level.editable} bind:checked={level.canExecute}/>
|
||||||
</span>
|
</span>
|
||||||
{/each}
|
{/each}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="buttons">
|
<div class="buttons">
|
||||||
|
<button
|
||||||
|
data-cy="save-workflow-setup"
|
||||||
|
class="workflow-button hoverable"
|
||||||
|
on:click={saveWorkflow}>
|
||||||
|
Save Workflow
|
||||||
|
</button>
|
||||||
<button class="delete-workflow-button" on:click={deleteWorkflow}>
|
<button class="delete-workflow-button" on:click={deleteWorkflow}>
|
||||||
Delete Workflow
|
Delete Workflow
|
||||||
</button>
|
</button>
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<script>
|
<script>
|
||||||
import Modal from "svelte-simple-modal"
|
import Modal from "svelte-simple-modal"
|
||||||
import { store } from "builderStore"
|
import { store, workflowStore } from "builderStore"
|
||||||
import { get } from "builderStore/api"
|
import { get } from "builderStore/api"
|
||||||
|
|
||||||
import { fade } from "svelte/transition"
|
import { fade } from "svelte/transition"
|
||||||
|
@ -20,6 +20,7 @@
|
||||||
|
|
||||||
if (res.ok) {
|
if (res.ok) {
|
||||||
await store.setPackage(pkg)
|
await store.setPackage(pkg)
|
||||||
|
workflowStore.actions.fetch()
|
||||||
return pkg
|
return pkg
|
||||||
} else {
|
} else {
|
||||||
throw new Error(pkg)
|
throw new Error(pkg)
|
||||||
|
|
|
@ -5,7 +5,20 @@
|
||||||
"componentLibraries": ["@budibase/standard-components", "@budibase/materialdesign-components"],
|
"componentLibraries": ["@budibase/standard-components", "@budibase/materialdesign-components"],
|
||||||
"props" : {
|
"props" : {
|
||||||
"_component": "@budibase/standard-components/container",
|
"_component": "@budibase/standard-components/container",
|
||||||
"_children": [],
|
"_children": [
|
||||||
|
{
|
||||||
|
"_id": "7fcf11e4-6f5b-4085-8e0d-9f3d44c98967",
|
||||||
|
"_component": "##builtin/screenslot",
|
||||||
|
"_styles": {
|
||||||
|
"normal": {},
|
||||||
|
"hover": {},
|
||||||
|
"active": {},
|
||||||
|
"selected": {}
|
||||||
|
},
|
||||||
|
"_code": "",
|
||||||
|
"_children": []
|
||||||
|
}
|
||||||
|
],
|
||||||
"_id": 0,
|
"_id": 0,
|
||||||
"type": "div",
|
"type": "div",
|
||||||
"_styles": {
|
"_styles": {
|
||||||
|
|
Loading…
Reference in New Issue