mirror of
https://github.com/hcengineering/platform.git
synced 2026-10-01 14:05:05 +02:00
remove extra spaces (#5930)
Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
This commit is contained in:
@@ -13,10 +13,11 @@
|
||||
// limitations under the License.
|
||||
-->
|
||||
<script lang="ts">
|
||||
import core from '@hcengineering/core'
|
||||
import login from '@hcengineering/login'
|
||||
import presentation, { createQuery, getClient } from '@hcengineering/presentation'
|
||||
import setting, { InviteSettings } from '@hcengineering/setting'
|
||||
import { Button, EditBox, MiniToggle, Header, Breadcrumb } from '@hcengineering/ui'
|
||||
import { Breadcrumb, Button, EditBox, Header, MiniToggle } from '@hcengineering/ui'
|
||||
|
||||
const client = getClient()
|
||||
let expTime: number = 48
|
||||
@@ -43,11 +44,11 @@
|
||||
enabled: true
|
||||
}
|
||||
if (existingInviteSettings.length === 0) {
|
||||
await client.createDoc(setting.class.InviteSettings, setting.space.Setting, newSettings)
|
||||
await client.createDoc(setting.class.InviteSettings, core.space.Workspace, newSettings)
|
||||
} else {
|
||||
await client.updateDoc(
|
||||
setting.class.InviteSettings,
|
||||
setting.space.Setting,
|
||||
core.space.Workspace,
|
||||
existingInviteSettings[0]._id,
|
||||
newSettings
|
||||
)
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
// limitations under the License.
|
||||
-->
|
||||
<script lang="ts">
|
||||
import { getCurrentAccount } from '@hcengineering/core'
|
||||
import core, { getCurrentAccount } from '@hcengineering/core'
|
||||
import { getResource, translate } from '@hcengineering/platform'
|
||||
import { getClient } from '@hcengineering/presentation'
|
||||
import type { Integration, IntegrationType } from '@hcengineering/setting'
|
||||
@@ -62,7 +62,7 @@
|
||||
return
|
||||
}
|
||||
if (integration === undefined) {
|
||||
const id = await client.createDoc(setting.class.Integration, setting.space.Setting, {
|
||||
const id = await client.createDoc(setting.class.Integration, core.space.Workspace, {
|
||||
type: integrationType._id,
|
||||
value: '',
|
||||
disabled: false
|
||||
|
||||
@@ -15,6 +15,7 @@
|
||||
<script lang="ts">
|
||||
import { AvatarType } from '@hcengineering/contact'
|
||||
import { EditableAvatar } from '@hcengineering/contact-resources'
|
||||
import core from '@hcengineering/core'
|
||||
import { getEmbeddedLabel } from '@hcengineering/platform'
|
||||
import { getClient } from '@hcengineering/presentation'
|
||||
import { WorkspaceSetting } from '@hcengineering/setting'
|
||||
@@ -35,7 +36,7 @@
|
||||
const avatar = await avatarEditor.createAvatar()
|
||||
await client.createDoc(
|
||||
setting.class.WorkspaceSetting,
|
||||
setting.space.Setting,
|
||||
core.space.Workspace,
|
||||
{ icon: avatar.avatar },
|
||||
setting.ids.WorkspaceSetting
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user