diff --git a/packages/builder/src/components/backend/DataTable/buttons/EditRolesButton.svelte b/packages/builder/src/components/backend/DataTable/buttons/EditRolesButton.svelte
index 87ca2fa142..3b31de170c 100644
--- a/packages/builder/src/components/backend/DataTable/buttons/EditRolesButton.svelte
+++ b/packages/builder/src/components/backend/DataTable/buttons/EditRolesButton.svelte
@@ -1,13 +1,15 @@
-
- Edit roles
-
-
+
+
+
+
diff --git a/packages/builder/src/components/backend/DataTable/buttons/ManageAccessButton.svelte b/packages/builder/src/components/backend/DataTable/buttons/ManageAccessButton.svelte
index de868c60e0..22a55ecc03 100644
--- a/packages/builder/src/components/backend/DataTable/buttons/ManageAccessButton.svelte
+++ b/packages/builder/src/components/backend/DataTable/buttons/ManageAccessButton.svelte
@@ -3,10 +3,12 @@
import { permissions } from "stores/builder"
import ManageAccessModal from "../modals/ManageAccessModal.svelte"
import DetailPopover from "components/common/DetailPopover.svelte"
+ import EditRolesButton from "./EditRolesButton.svelte"
export let resourceId
let resourcePermissions
+ let showPopover = true
$: fetchPermissions(resourceId)
@@ -15,11 +17,15 @@
}
-
+
Access
{#if resourcePermissions}
{/if}
+ (showPopover = false)}
+ on:hide={() => (showPopover = true)}
+ />
diff --git a/packages/builder/src/components/backend/DataTable/buttons/grid/GridRowActionsButton.svelte b/packages/builder/src/components/backend/DataTable/buttons/grid/GridRowActionsButton.svelte
index bd50b403f4..7753d4eb3b 100644
--- a/packages/builder/src/components/backend/DataTable/buttons/grid/GridRowActionsButton.svelte
+++ b/packages/builder/src/components/backend/DataTable/buttons/grid/GridRowActionsButton.svelte
@@ -23,7 +23,6 @@
$: tableId = ds?.tableId
$: isView = ds?.type === "viewV2"
$: fetchRowActions(tableId)
- $: console.log(rowActions)
$: activeCount = 0
$: suffix = isView ? activeCount : rowActions.length
@@ -51,12 +50,12 @@
name,
tableId,
})
- console.log(res)
await automationStore.actions.fetch()
notifications.success("Row action created successfully")
$goto($rowActionUrl(res))
} catch (error) {
- console.log(error)
+ console.error(error)
+ notifications.error("Error creating row action")
}
}
diff --git a/packages/builder/src/components/backend/DataTable/buttons/grid/GridScreensButton.svelte b/packages/builder/src/components/backend/DataTable/buttons/grid/GridScreensButton.svelte
index c2c7721664..48c9bdc96c 100644
--- a/packages/builder/src/components/backend/DataTable/buttons/grid/GridScreensButton.svelte
+++ b/packages/builder/src/components/backend/DataTable/buttons/grid/GridScreensButton.svelte
@@ -11,13 +11,10 @@
$: connectedScreens = findConnectedScreens($screenStore.screens, resourceId)
const findConnectedScreens = (screens, resourceId) => {
- console.log(resourceId)
return screens.filter(screen => {
return JSON.stringify(screen).includes(`"${resourceId}"`)
})
}
-
- $: console.log(connectedScreens)
diff --git a/packages/builder/src/components/common/DetailPopover.svelte b/packages/builder/src/components/common/DetailPopover.svelte
index 67d2e0a6eb..a399bae10f 100644
--- a/packages/builder/src/components/common/DetailPopover.svelte
+++ b/packages/builder/src/components/common/DetailPopover.svelte
@@ -5,6 +5,7 @@
export let align = "left"
export let minWidth
export let maxWidth
+ export let showPopover
let popover
let anchor
@@ -23,10 +24,11 @@