[TSK-225] Tracker: add issue shortlink resolver (Part 2) (#2173)

Signed-off-by: Anna <anna.no@xored.com>
This commit is contained in:
Anna No
2022-06-30 10:46:46 +07:00
committed by GitHub
parent 94ee6f5afe
commit bf6780a32f
16 changed files with 158 additions and 57 deletions
+5 -2
View File
@@ -16,9 +16,9 @@
import { Employee } from '@anticrm/contact'
import type { AttachedDoc, Class, Doc, Markup, Ref, Space, Timestamp, Type } from '@anticrm/core'
import { Action, ActionCategory } from '@anticrm/view'
import type { Asset, IntlString, Plugin } from '@anticrm/platform'
import type { Asset, IntlString, Plugin, Resource } from '@anticrm/platform'
import { plugin } from '@anticrm/platform'
import { AnyComponent } from '@anticrm/ui'
import { AnyComponent, Location } from '@anticrm/ui'
import type { TagCategory } from '@anticrm/tags'
/**
@@ -288,5 +288,8 @@ export default plugin(trackerId, {
},
team: {
DefaultTeam: '' as Ref<Team>
},
resolver: {
Location: '' as Resource<(loc: Location) => Promise<Location | undefined>>
}
})