diff --git a/packages/bbui/src/Form/Core/InputDropdown.svelte b/packages/bbui/src/Form/Core/InputDropdown.svelte index be43676bb9..da38942809 100644 --- a/packages/bbui/src/Form/Core/InputDropdown.svelte +++ b/packages/bbui/src/Form/Core/InputDropdown.svelte @@ -5,7 +5,6 @@ import { fly } from "svelte/transition" import { createEventDispatcher } from "svelte" import clickOutside from "../../Actions/click_outside" - import StatusLight from "../../StatusLight/StatusLight.svelte" export let inputValue export let dropdownValue @@ -19,7 +18,6 @@ export let options = [] export let getOptionLabel = option => extractProperty(option, "label") export let getOptionValue = option => extractProperty(option, "value") - export let getOptionColour = option => extractProperty(option, "colour") export let isOptionSelected = () => false diff --git a/packages/bbui/src/Form/Core/PickerDropdown.svelte b/packages/bbui/src/Form/Core/PickerDropdown.svelte index 9620636742..6c4709f0b7 100644 --- a/packages/bbui/src/Form/Core/PickerDropdown.svelte +++ b/packages/bbui/src/Form/Core/PickerDropdown.svelte @@ -5,7 +5,6 @@ import { fly } from "svelte/transition" import { createEventDispatcher } from "svelte" import clickOutside from "../../Actions/click_outside" - import Search from "./Search.svelte" import Icon from "../../Icon/Icon.svelte" import StatusLight from "../../StatusLight/StatusLight.svelte" import Detail from "../../Typography/Detail.svelte" @@ -61,14 +60,6 @@ dispatch("change", newValue) } - const onClickPrimary = () => { - dispatch("click") - if (readonly) { - return - } - primaryOpen = true - } - const onClickSecondary = () => { dispatch("click") if (readonly) { @@ -83,18 +74,10 @@ } const onPickSecondary = newValue => { - console.log(newValue) dispatch("picksecondary", newValue) secondaryOpen = false } - const onFocus = () => { - if (readonly) { - return - } - focus = true - } - const onBlur = event => { if (readonly) { return @@ -354,11 +337,6 @@ border-bottom-left-radius: 0px; } - .override-borders-left { - border-top-right-radius: 0px; - border-bottom-right-radius: 0px; - border-right: 0px; - } .spectrum-Popover { max-height: 240px; z-index: 999; diff --git a/packages/bbui/src/Form/PickerDropdown.svelte b/packages/bbui/src/Form/PickerDropdown.svelte index de284dd379..eec5b2823b 100644 --- a/packages/bbui/src/Form/PickerDropdown.svelte +++ b/packages/bbui/src/Form/PickerDropdown.svelte @@ -8,7 +8,6 @@ export let inputType = "text" export let label = null export let labelPosition = "above" - export let primaryPlaceholder = "test" export let secondaryPlaceholder = null export let autocomplete export let placeholder = null @@ -72,15 +71,12 @@ } const onPickPrimary = e => { - console.log("hello") - primaryLabel = e.detail.label primaryValue = e.detail.value dispatch("pickprimary", e.detail.value) } const onPickSecondary = e => { - console.log("hello222") secondaryValue = e.detail dispatch("picksecondary", e.detail) } diff --git a/packages/builder/src/components/backend/DatasourceNavigator/TableIntegrationMenu/rest/auth/RestAuthenticationModal.svelte b/packages/builder/src/components/backend/DatasourceNavigator/TableIntegrationMenu/rest/auth/RestAuthenticationModal.svelte index b754f878ce..f19f2279d9 100644 --- a/packages/builder/src/components/backend/DatasourceNavigator/TableIntegrationMenu/rest/auth/RestAuthenticationModal.svelte +++ b/packages/builder/src/components/backend/DatasourceNavigator/TableIntegrationMenu/rest/auth/RestAuthenticationModal.svelte @@ -211,7 +211,6 @@ bindings={getAuthBindings()} on:change={e => { form.bearer.token = e.detail - console.log(e.detail) onFieldChange() }} on:blur={() => { diff --git a/packages/builder/src/components/design/NavigationPanel/ComponentNavigationTree/ScreenDropdownMenu.svelte b/packages/builder/src/components/design/NavigationPanel/ComponentNavigationTree/ScreenDropdownMenu.svelte index a9cffa2253..f56353ea47 100644 --- a/packages/builder/src/components/design/NavigationPanel/ComponentNavigationTree/ScreenDropdownMenu.svelte +++ b/packages/builder/src/components/design/NavigationPanel/ComponentNavigationTree/ScreenDropdownMenu.svelte @@ -41,7 +41,6 @@ await store.actions.screens.save(duplicateScreen) } catch (error) { notifications.error("Error duplicating screen") - console.log(error) } } diff --git a/packages/builder/src/components/settings/UserGroupPicker.svelte b/packages/builder/src/components/settings/UserGroupPicker.svelte index 31354bde83..6eef15efe6 100644 --- a/packages/builder/src/components/settings/UserGroupPicker.svelte +++ b/packages/builder/src/components/settings/UserGroupPicker.svelte @@ -1,6 +1,5 @@
diff --git a/packages/builder/src/pages/builder/portal/_layout.svelte b/packages/builder/src/pages/builder/portal/_layout.svelte index a79b318a35..6d400f23c7 100644 --- a/packages/builder/src/pages/builder/portal/_layout.svelte +++ b/packages/builder/src/pages/builder/portal/_layout.svelte @@ -126,11 +126,10 @@ $redirect("../") } else { try { - await organisation.init() await roles.fetch() + await organisation.init() } catch (error) { console.log(error) - notifications.error("Error getting org config") } loaded = true diff --git a/packages/builder/src/pages/builder/portal/manage/auth/index.svelte b/packages/builder/src/pages/builder/portal/manage/auth/index.svelte index 26e4c2b538..bc77329a32 100644 --- a/packages/builder/src/pages/builder/portal/manage/auth/index.svelte +++ b/packages/builder/src/pages/builder/portal/manage/auth/index.svelte @@ -219,7 +219,6 @@ try { await organisation.init() } catch (error) { - console.log("hello1") notifications.error("Error getting org config") } diff --git a/packages/builder/src/pages/builder/portal/manage/groups/[groupId].svelte b/packages/builder/src/pages/builder/portal/manage/groups/[groupId].svelte index 8939d44449..284fb45463 100644 --- a/packages/builder/src/pages/builder/portal/manage/groups/[groupId].svelte +++ b/packages/builder/src/pages/builder/portal/manage/groups/[groupId].svelte @@ -56,7 +56,6 @@ $users.data?.filter(x => !group?.users.map(y => y._id).includes(x._id)) || [] - $: console.log(filtered) async function removeUser(id) { let newUsers = group.users.filter(user => user._id !== id) group.users = newUsers @@ -82,10 +81,6 @@ } } - function onChange(e) { - console.log(e) - } - onMount(async () => { try { await groups.actions.init() @@ -118,7 +113,6 @@
{ if ($userFetch.data?.roles) { @@ -161,18 +162,6 @@ notifications.error("Error updating user") } } - async function toggleBuilderAccess({ detail }) { - return toggleFlag("builder", detail) - } - - async function toggleAdminAccess({ detail }) { - return toggleFlag("admin", detail) - } - - async function openUpdateRolesModal({ detail }) { - selectedApp = detail - editRolesModal.show() - } function addAll() {} onMount(async () => { diff --git a/packages/builder/src/pages/builder/portal/manage/users/_components/AddUserModal.svelte b/packages/builder/src/pages/builder/portal/manage/users/_components/AddUserModal.svelte index 12cf55dd4d..c260097cd3 100644 --- a/packages/builder/src/pages/builder/portal/manage/users/_components/AddUserModal.svelte +++ b/packages/builder/src/pages/builder/portal/manage/users/_components/AddUserModal.svelte @@ -5,15 +5,9 @@ ModalContent, Multiselect, InputDropdown, - Body, - Input, - notifications, - Select, - Toggle, Layout, } from "@budibase/bbui" - import { createValidationStore, emailValidator } from "helpers/validation" - import { users, groups } from "stores/portal" + import { groups } from "stores/portal" import { createEventDispatcher } from "svelte" import { Constants } from "@budibase/frontend-core" @@ -22,8 +16,6 @@ const dispatch = createEventDispatcher() let disabled - let selected = "Email onboarding" - $: userData = [{ email: "", role: "", groups: [], error: null }] function addNewInput() { diff --git a/packages/builder/src/pages/builder/portal/manage/users/_components/GroupsTableRenderer.svelte b/packages/builder/src/pages/builder/portal/manage/users/_components/GroupsTableRenderer.svelte index dcd25f61aa..772b5fe7b9 100644 --- a/packages/builder/src/pages/builder/portal/manage/users/_components/GroupsTableRenderer.svelte +++ b/packages/builder/src/pages/builder/portal/manage/users/_components/GroupsTableRenderer.svelte @@ -1,7 +1,6 @@
diff --git a/packages/builder/src/pages/builder/portal/manage/users/_components/ImportUsersModal.svelte b/packages/builder/src/pages/builder/portal/manage/users/_components/ImportUsersModal.svelte index b9b4f91af8..5c78dedd66 100644 --- a/packages/builder/src/pages/builder/portal/manage/users/_components/ImportUsersModal.svelte +++ b/packages/builder/src/pages/builder/portal/manage/users/_components/ImportUsersModal.svelte @@ -18,8 +18,9 @@ let csvString = undefined + /* function parseCsv() {} - +*/ async function handleFile(evt) { const fileArray = Array.from(evt.target.files) if (fileArray.some(file => file.size >= FILE_SIZE_LIMIT)) { @@ -72,27 +73,10 @@