mirror of
https://github.com/hcengineering/platform.git
synced 2025-04-13 03:40:48 +00:00
ezqms-974: fix space type selector in document and product spaces (#5802)
Signed-off-by: Alexey Zinoviev <alexey.zinoviev@xored.com>
This commit is contained in:
parent
a409cfafb3
commit
ca892ba06f
@ -74,6 +74,8 @@
|
||||
|
||||
rolesAssignment = getRolesAssignment()
|
||||
}
|
||||
$: descriptors =
|
||||
spaceType?.descriptor !== undefined ? [spaceType.descriptor] : [documents.descriptor.DocumentSpaceType]
|
||||
|
||||
function getRolesAssignment (): RolesAssignment {
|
||||
if (docSpace === undefined || spaceType?.targetClass === undefined || spaceType?.$lookup?.roles === undefined) {
|
||||
@ -239,7 +241,7 @@
|
||||
|
||||
<SpaceTypeSelector
|
||||
disabled={!isNew}
|
||||
descriptors={[documents.descriptor.DocumentSpaceType]}
|
||||
{descriptors}
|
||||
type={typeId}
|
||||
focusIndex={4}
|
||||
kind="regular"
|
||||
|
@ -28,7 +28,7 @@
|
||||
|
||||
let types: SpaceType[] = []
|
||||
const typesQ = createQuery()
|
||||
const query = {
|
||||
$: query = {
|
||||
descriptor: { $in: descriptors }
|
||||
}
|
||||
$: typesQ.query(core.class.SpaceType, query, (result) => {
|
||||
|
Loading…
Reference in New Issue
Block a user