1
0
Fork 0
mirror of synced 2024-06-28 02:50:50 +12:00
This commit is contained in:
Peter Clement 2022-07-14 10:01:26 +01:00
parent 20e9e7a716
commit 5fe6bd34b0
7 changed files with 3 additions and 13 deletions

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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