diff --git a/packages/builder/src/components/userInterface/NewScreen.svelte b/packages/builder/src/components/userInterface/NewScreen.svelte
index 87ebeb5319..82546978a7 100644
--- a/packages/builder/src/components/userInterface/NewScreen.svelte
+++ b/packages/builder/src/components/userInterface/NewScreen.svelte
@@ -8,6 +8,7 @@
import UIkit from "uikit"
import { isRootComponent } from "./pagesParsing/searchComponents"
import { splitName } from "./pagesParsing/splitRootComponentName.js"
+ import { Input, Select } from "@budibase/bbui"
import { find, filter, some, map, includes } from "lodash/fp"
import { assign } from "lodash"
@@ -21,6 +22,8 @@
let layoutComponent
let screens
let name = ""
+ let nameError = ""
+ let routeError
let saveAttempted = false
@@ -39,12 +42,27 @@
const save = () => {
saveAttempted = true
- const isValid =
- name.length > 0 &&
- !screenNameExists(name) &&
- route.length > 0 &&
- !routeNameExists(route) &&
- layoutComponent
+ if (name.length === 0) {
+ nameError = "Name is required"
+ } else {
+ if (screenNameExists(name)) {
+ nameError = "This name is already taken"
+ } else {
+ nameError = ""
+ }
+ }
+
+ if (route.length === 0) {
+ routeError = "Url is required"
+ } else {
+ if (routeNameExists(name)) {
+ routeError = "This url is already taken"
+ } else {
+ routeError = ""
+ }
+ }
+
+ const isValid = !routeError && !nameError
if (!isValid) return
@@ -82,40 +100,26 @@
onOk={save}
okText="Create Screen">
-
Workflow: {workflow.name}
User Access
@@ -194,28 +188,12 @@
margin-bottom: 20px;
}
- .budibase_input {
- height: 36px;
- width: 244px;
- border-radius: 3px;
- background-color: var(--grey-2);
- border: 1px solid var(--grey-2);
- text-align: left;
- color: var(--ink);
- font-size: 14px;
- padding-left: 12px;
- }
-
header > span {
color: var(--grey-5);
margin-right: 20px;
cursor: pointer;
}
- .form {
- margin-top: 12px;
- }
-
label {
font-weight: 500;
font-size: 14px;
diff --git a/packages/builder/src/components/workflow/SetupPanel/WorkflowBlockSetup.svelte b/packages/builder/src/components/workflow/SetupPanel/WorkflowBlockSetup.svelte
index 0c527d8b4b..17f0b00ec2 100644
--- a/packages/builder/src/components/workflow/SetupPanel/WorkflowBlockSetup.svelte
+++ b/packages/builder/src/components/workflow/SetupPanel/WorkflowBlockSetup.svelte
@@ -3,6 +3,7 @@
import ComponentSelector from "./ParamInputs/ComponentSelector.svelte"
import ModelSelector from "./ParamInputs/ModelSelector.svelte"
import RecordSelector from "./ParamInputs/RecordSelector.svelte"
+ import { Input, TextArea, Select } from "@budibase/bbui"
export let workflowBlock
@@ -18,42 +19,34 @@
{parameter}
{#if Array.isArray(type)}
-
+
{#each type as option}
{option}
{/each}
-
+
{:else if type === 'component'}
{:else if type === 'accessLevel'}
-
+
Admin
Power User
-
+
{:else if type === 'password'}
-
+
{:else if type === 'number'}
-
+
{:else if type === 'longText'}
-
+ thin
+ bind:value={workflowBlock.args[parameter]}
+ label="" />
{:else if type === 'model'}
{:else if type === 'record'}
{:else if type === 'string'}
-
+
{/if}
{/each}
@@ -62,17 +55,6 @@
.block-field {
display: grid;
}
- .budibase_input {
- height: 36px;
- border-radius: 5px;
- background-color: var(--grey-2);
- border: 1px solid var(--grey-2);
- text-align: left;
- color: var(--ink);
- font-size: 14px;
- padding-left: 12px;
- margin-top: 8px;
- }
label {
text-transform: capitalize;
diff --git a/packages/builder/src/components/workflow/WorkflowPanel/WorkflowList/CreateWorkflowModal.svelte b/packages/builder/src/components/workflow/WorkflowPanel/WorkflowList/CreateWorkflowModal.svelte
index e3d9d62895..843ca92aa5 100644
--- a/packages/builder/src/components/workflow/WorkflowPanel/WorkflowList/CreateWorkflowModal.svelte
+++ b/packages/builder/src/components/workflow/WorkflowPanel/WorkflowList/CreateWorkflowModal.svelte
@@ -2,6 +2,7 @@
import { store, backendUiStore, workflowStore } from "builderStore"
import { notifier } from "builderStore/store/notifications"
import ActionButton from "components/common/ActionButton.svelte"
+ import { Input } from "@budibase/bbui"
export let onClosed
@@ -26,8 +27,7 @@
Create Workflow
- Name
-
+