tidy up
This commit is contained in:
parent
20e9e7a716
commit
5fe6bd34b0
|
@ -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
|
||||||
|
|
|
@ -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>
|
||||||
|
|
|
@ -11,7 +11,6 @@
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
$: console.log(mappedData)
|
|
||||||
const schema = {
|
const schema = {
|
||||||
email: {},
|
email: {},
|
||||||
password: {},
|
password: {},
|
||||||
|
|
|
@ -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")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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,
|
||||||
|
|
|
@ -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: {},
|
||||||
|
|
Loading…
Reference in New Issue