TSK-806 Пропадают сохраненные View (#2738)

Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
This commit is contained in:
Denis Bykhov
2023-03-15 22:26:33 +07:00
committed by GitHub
parent ae86bfdacd
commit fff4debc49
33 changed files with 412 additions and 253 deletions
@@ -5,7 +5,13 @@
import { Issue } from '@hcengineering/tracker'
import { Button, IconDetails, IconDetailsFilled } from '@hcengineering/ui'
import view, { Viewlet } from '@hcengineering/view'
import { FilterBar, getActiveViewletId, getViewOptions, setActiveViewletId } from '@hcengineering/view-resources'
import {
FilterBar,
getActiveViewletId,
getViewOptions,
viewOptionStore,
setActiveViewletId
} from '@hcengineering/view-resources'
import ViewletSettingButton from '@hcengineering/view-resources/src/components/ViewletSettingButton.svelte'
import tracker from '../../plugin'
import IssuesContent from './IssuesContent.svelte'
@@ -65,7 +71,7 @@
$: if (docWidth <= 900 && !docSize) docSize = true
$: if (docWidth > 900 && docSize) docSize = false
$: viewOptions = getViewOptions(viewlet)
$: viewOptions = getViewOptions(viewlet, $viewOptionStore)
</script>
<IssuesHeader {viewlets} {label} {space} bind:viewlet bind:search showLabelSelector={$$slots.label_selector}>
@@ -29,7 +29,13 @@
navigate
} from '@hcengineering/ui'
import view, { Viewlet } from '@hcengineering/view'
import { createFilter, filterStore, getViewOptions, ViewletSettingButton } from '@hcengineering/view-resources'
import {
createFilter,
filterStore,
getViewOptions,
viewOptionStore,
ViewletSettingButton
} from '@hcengineering/view-resources'
import tracker from '../../../plugin'
import CreateSubIssue from './CreateSubIssue.svelte'
import SubIssueList from './SubIssueList.svelte'
@@ -86,7 +92,7 @@
statusesQuery.unsubscribe()
}
$: viewOptions = viewlet !== undefined ? getViewOptions(viewlet) : undefined
$: viewOptions = viewlet !== undefined ? getViewOptions(viewlet, $viewOptionStore) : undefined
</script>
<div class="flex-between">
@@ -4,7 +4,12 @@
import { createQuery, getClient } from '@hcengineering/presentation'
import { Button, Icon, IconAdd, Label, showPopup, Component } from '@hcengineering/ui'
import view, { Viewlet } from '@hcengineering/view'
import { getViewOptions, ViewletSettingButton, getAdditionalHeader } from '@hcengineering/view-resources'
import {
getViewOptions,
ViewletSettingButton,
viewOptionStore,
getAdditionalHeader
} from '@hcengineering/view-resources'
import viewplg from '@hcengineering/view-resources/src/plugin'
import tracker from '../../../plugin'
import RelatedIssues from './RelatedIssues.svelte'
@@ -22,7 +27,7 @@
;[viewlet] = res
})
let viewOptions = getViewOptions(viewlet)
$: viewOptions = getViewOptions(viewlet, $viewOptionStore)
const createIssue = () => showPopup(tracker.component.CreateIssue, { relatedTo: object, space: object.space }, 'top')
let query: DocumentQuery<Issue>
@@ -24,6 +24,7 @@
FilterButton,
getActiveViewletId,
getViewOptions,
viewOptionStore,
setActiveViewletId,
ViewletSettingButton
} from '@hcengineering/view-resources'
@@ -90,7 +91,7 @@
$: if (docWidth <= 900 && !docSize) docSize = true
$: if (docWidth > 900 && docSize) docSize = false
$: viewOptions = getViewOptions(viewlet)
$: viewOptions = getViewOptions(viewlet, $viewOptionStore)
const handleViewModeChanged = (newMode: SprintViewMode) => {
if (newMode === undefined || newMode === mode) {
@@ -5,7 +5,13 @@
import { IssueTemplate } from '@hcengineering/tracker'
import { Button, IconAdd, IconDetails, IconDetailsFilled, showPopup } from '@hcengineering/ui'
import view, { Viewlet } from '@hcengineering/view'
import { FilterBar, getActiveViewletId, getViewOptions, setActiveViewletId } from '@hcengineering/view-resources'
import {
FilterBar,
getActiveViewletId,
getViewOptions,
viewOptionStore,
setActiveViewletId
} from '@hcengineering/view-resources'
import ViewletSettingButton from '@hcengineering/view-resources/src/components/ViewletSettingButton.svelte'
import tracker from '../../plugin'
import IssuesHeader from '../issues/IssuesHeader.svelte'
@@ -71,7 +77,7 @@
showPopup(CreateIssueTemplate, { targetElement: null, space }, 'top')
}
$: viewOptions = getViewOptions(viewlet)
$: viewOptions = getViewOptions(viewlet, $viewOptionStore)
</script>
<IssuesHeader {space} {viewlets} {label} bind:viewlet bind:search showLabelSelector={$$slots.label_selector}>