1
0
Fork 0
mirror of synced 2024-07-08 15:56:23 +12:00
This commit is contained in:
Peter Clement 2022-07-14 10:01:26 +01:00
parent 10e046d8a2
commit eadac09e1e
7 changed files with 3 additions and 13 deletions

View file

@ -129,7 +129,6 @@
await roles.fetch() await roles.fetch()
await organisation.init() await organisation.init()
} catch (error) { } catch (error) {
console.log(error)
notifications.error("Error getting org config") notifications.error("Error getting org config")
} }
loaded = true loaded = true

View file

@ -41,7 +41,6 @@
let selectedUser = selectedUsers.includes(id) let selectedUser = selectedUsers.includes(id)
let enrichedUser = $users.data.find(user => user._id === id) let enrichedUser = $users.data.find(user => user._id === id)
if (selectedUser) { if (selectedUser) {
console.log
selectedUsers = selectedUsers.filter(id => id !== selectedUser) selectedUsers = selectedUsers.filter(id => id !== selectedUser)
let newUsers = group.users.filter(user => user._id !== id) let newUsers = group.users.filter(user => user._id !== id)
group.users = newUsers group.users = newUsers
@ -152,7 +151,7 @@
</div> </div>
<List> <List>
{#if group?.apps} {#if group?.apps.length}
{#each group.apps as app} {#each group.apps as app}
<ListItem <ListItem
title={app.name} title={app.name}
@ -160,9 +159,9 @@
iconBackground={app?.icon?.color || ""} iconBackground={app?.icon?.color || ""}
> >
<div class="title "> <div class="title ">
<StatusLight color={RoleUtils.getRoleColour(app.access)} /> <StatusLight color={RoleUtils.getRoleColour(group.role)} />
<div style="margin-left: var(--spacing-s);"> <div style="margin-left: var(--spacing-s);">
<Body size="XS">{app.access}</Body> <Body size="XS">{group.role}</Body>
</div> </div>
</div> </div>
</ListItem> </ListItem>

View file

@ -11,7 +11,6 @@
} }
}) })
$: console.log(mappedData)
const schema = { const schema = {
email: {}, email: {},
password: {}, password: {},

View file

@ -130,7 +130,6 @@
notifications.success(res.message) notifications.success(res.message)
inviteConfirmationModal.show() inviteConfirmationModal.show()
} catch (error) { } catch (error) {
console.log(error)
notifications.error("Error inviting user") notifications.error("Error inviting user")
} }
} }
@ -184,7 +183,6 @@
await groups.actions.init() await groups.actions.init()
passwordModal.show() passwordModal.show()
} catch (error) { } catch (error) {
console.log(error)
notifications.error("Error creating user") notifications.error("Error creating user")
} }
} }
@ -213,7 +211,6 @@
selectedRows = [] selectedRows = []
await fetchUsers(page, searchEmail) await fetchUsers(page, searchEmail)
} catch (error) { } catch (error) {
console.log(error)
notifications.error("Error deleting rows") notifications.error("Error deleting rows")
} }
} }

View file

@ -28,7 +28,6 @@
let pageInfo = createPaginationStore() let pageInfo = createPaginationStore()
$: page = $pageInfo.page $: page = $pageInfo.page
$: console.log(page)
$: fetchUsers(page, search) $: fetchUsers(page, search)
$: isProPlan = $auth.user?.license.plan.type === Constants.PlanType.FREE $: isProPlan = $auth.user?.license.plan.type === Constants.PlanType.FREE

View file

@ -43,7 +43,6 @@ export function createUsersStore() {
async function create(data) { async function create(data) {
let mappedUsers = data.users.map(user => { let mappedUsers = data.users.map(user => {
console.log(user)
const body = { const body = {
email: user.email, email: user.email,
password: user.password, password: user.password,

View file

@ -75,7 +75,6 @@ exports.run = async function ({ inputs, appId, emitter }) {
await queryController.executeV2(ctx, true) await queryController.executeV2(ctx, true)
const { data, ...rest } = ctx.body const { data, ...rest } = ctx.body
console.log(data)
return { return {
response: data, response: data,
@ -83,7 +82,6 @@ exports.run = async function ({ inputs, appId, emitter }) {
success: true, success: true,
} }
} catch (err) { } catch (err) {
console.log(err)
return { return {
success: false, success: false,
info: {}, info: {},