From 2fbbfab597f0910ad6b15f51ebfc41bc00936a90 Mon Sep 17 00:00:00 2001 From: Andrey Sobolev Date: Tue, 25 Jan 2022 15:41:53 +0700 Subject: [PATCH] Hide archived spaces from dialogs Closes #858 Closes #865 Signed-off-by: Andrey Sobolev --- packages/presentation/src/components/Card.svelte | 5 +++-- packages/presentation/src/components/SpaceSelect.svelte | 9 +++++---- packages/presentation/src/components/SpacesPopup.svelte | 5 +++-- .../src/components/CreateApplication.svelte | 1 + 4 files changed, 12 insertions(+), 8 deletions(-) diff --git a/packages/presentation/src/components/Card.svelte b/packages/presentation/src/components/Card.svelte index db362b4f59..0fa060cc43 100644 --- a/packages/presentation/src/components/Card.svelte +++ b/packages/presentation/src/components/Card.svelte @@ -18,7 +18,7 @@ import type { IntlString } from '@anticrm/platform' import { createEventDispatcher } from 'svelte' - import type { Ref, Class, Space } from '@anticrm/core' + import type { Ref, Class, Space, DocumentQuery } from '@anticrm/core' import { Button, Label } from '@anticrm/ui' import SpaceSelect from './SpaceSelect.svelte' @@ -26,6 +26,7 @@ export let spaceClass: Ref> | undefined = undefined export let space: Ref + export let spaceQuery: DocumentQuery | undefined = { archived: false } export let spaceLabel: IntlString | undefined = undefined export let spacePlaceholder: IntlString | undefined = undefined export let label: IntlString @@ -52,7 +53,7 @@ {#if spaceClass && spaceLabel && spacePlaceholder}
- +
{/if}