mirror of
https://github.com/hcengineering/platform.git
synced 2026-09-23 01:55:00 +02:00
TSK-806 Пропадают сохраненные View (#2738)
Signed-off-by: Denis Bykhov <bykhov.denis@gmail.com>
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user