mirror of
https://github.com/hcengineering/platform.git
synced 2026-09-28 04:25:03 +02:00
UBER-496: Fix few issues (#3439)
This commit is contained in:
@@ -13,7 +13,17 @@
|
||||
// limitations under the License.
|
||||
//
|
||||
|
||||
import { Class, Client, Doc, DocumentQuery, Ref, RelatedDocument, toIdMap, TxOperations } from '@hcengineering/core'
|
||||
import {
|
||||
Class,
|
||||
Client,
|
||||
Doc,
|
||||
DocumentQuery,
|
||||
getCurrentAccount,
|
||||
Ref,
|
||||
RelatedDocument,
|
||||
toIdMap,
|
||||
TxOperations
|
||||
} from '@hcengineering/core'
|
||||
import { Resources, translate } from '@hcengineering/platform'
|
||||
import { getClient, MessageBox, ObjectSearchResult } from '@hcengineering/presentation'
|
||||
import { Issue, Milestone, Project } from '@hcengineering/tracker'
|
||||
@@ -419,7 +429,8 @@ export default async (): Promise<Resources> => ({
|
||||
GetAllPriority: getAllPriority,
|
||||
GetAllComponents: getAllComponents,
|
||||
GetAllMilestones: getAllMilestones,
|
||||
GetVisibleFilters: getVisibleFilters
|
||||
GetVisibleFilters: getVisibleFilters,
|
||||
IsProjectJoined: async (project: Project) => !project.private || project.members.includes(getCurrentAccount()._id)
|
||||
},
|
||||
actionImpl: {
|
||||
Move: move,
|
||||
|
||||
@@ -21,11 +21,11 @@ import {
|
||||
CreateAggregationManagerFunc,
|
||||
GetAllValuesFunc,
|
||||
GrouppingManagerResource,
|
||||
KeyFilter,
|
||||
SortFunc,
|
||||
Viewlet,
|
||||
ViewletDescriptor,
|
||||
ViewQueryAction,
|
||||
KeyFilter
|
||||
Viewlet,
|
||||
ViewletDescriptor
|
||||
} from '@hcengineering/view'
|
||||
import tracker, { trackerId } from '../../tracker/lib'
|
||||
|
||||
@@ -382,7 +382,8 @@ export default mergeIds(trackerId, tracker, {
|
||||
GetAllPriority: '' as GetAllValuesFunc,
|
||||
GetAllComponents: '' as GetAllValuesFunc,
|
||||
GetAllMilestones: '' as GetAllValuesFunc,
|
||||
GetVisibleFilters: '' as Resource<(filters: KeyFilter[], space?: Ref<Space>) => Promise<KeyFilter[]>>
|
||||
GetVisibleFilters: '' as Resource<(filters: KeyFilter[], space?: Ref<Space>) => Promise<KeyFilter[]>>,
|
||||
IsProjectJoined: '' as Resource<(space: Space) => Promise<boolean>>
|
||||
},
|
||||
aggregation: {
|
||||
CreateComponentAggregationManager: '' as CreateAggregationManagerFunc,
|
||||
|
||||
Reference in New Issue
Block a user