tidy up
This commit is contained in:
parent
10e046d8a2
commit
eadac09e1e
|
@ -129,7 +129,6 @@
|
|||
await roles.fetch()
|
||||
await organisation.init()
|
||||
} catch (error) {
|
||||
console.log(error)
|
||||
notifications.error("Error getting org config")
|
||||
}
|
||||
loaded = true
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -11,7 +11,6 @@
|
|||
}
|
||||
})
|
||||
|
||||
$: console.log(mappedData)
|
||||
const schema = {
|
||||
email: {},
|
||||
password: {},
|
||||
|
|
|
@ -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")
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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: {},
|
||||
|
|
Loading…
Reference in New Issue