Простановка публичных url в задачах при загрузке данных для виджетов
This commit is contained in:
parent
a6241ce786
commit
81966907ac
1 changed files with 1 additions and 0 deletions
|
|
@ -13,6 +13,7 @@ export class IssueUrlEnhancer implements IssueEnhancerInterface {
|
||||||
issue: RedmineTypes.Issue,
|
issue: RedmineTypes.Issue,
|
||||||
): Promise<RedmineTypes.Issue & Record<string, any>> {
|
): Promise<RedmineTypes.Issue & Record<string, any>> {
|
||||||
const res: RedmineTypes.Issue & Record<string, any> = issue;
|
const res: RedmineTypes.Issue & Record<string, any> = issue;
|
||||||
|
if (!issue || !issue.id) return issue;
|
||||||
res['url'] = {
|
res['url'] = {
|
||||||
url: this.redminePublicUrlConverter.getUrl(issue.id),
|
url: this.redminePublicUrlConverter.getUrl(issue.id),
|
||||||
fullHref: this.redminePublicUrlConverter.getHtmlHref(issue),
|
fullHref: this.redminePublicUrlConverter.getHtmlHref(issue),
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue