diff --git a/src/app/features/issue/github/github.const.ts b/src/app/features/issue/github/github.const.ts index 7159be7286..93f2c92923 100644 --- a/src/app/features/issue/github/github.const.ts +++ b/src/app/features/issue/github/github.const.ts @@ -2,8 +2,7 @@ import {GithubCfg} from './github'; import {FormlyFieldConfig} from '@ngx-formly/core'; import {T} from '../../../t.const'; -import {ConfigFormConfig, ConfigFormSection} from '../../config/global-config.model'; -import {GITHUB_TYPE} from '../issue.const'; +import {ConfigFormSection} from '../../config/global-config.model'; export const DEFAULT_GITHUB_CFG: GithubCfg = { repo: null, @@ -55,10 +54,7 @@ export const GITHUB_CONFIG_FORM: FormlyFieldConfig[] = [ export const GITHUB_CONFIG_FORM_SECTION: ConfigFormSection = { title: 'Github', - key: GITHUB_TYPE, + key: 'GITHUB', items: GITHUB_CONFIG_FORM, - /* tslint:disable */ - help: `
Here you can configure SuperProductivity to list open GithHub issues for a specific repository in the task creation panel in the daily planning view. They will be listed as suggestions and will provide a link to the issue as well as more information about it.
-In addition you can automatically add and sync all open issues to your task backlog.
`, - /* tslint:enable */ + help: T.F.GITHUB.FORM_SECTION.HELP, }; diff --git a/src/app/features/issue/issue.const.ts b/src/app/features/issue/issue.const.ts index 6101d74387..84ff5c3566 100644 --- a/src/app/features/issue/issue.const.ts +++ b/src/app/features/issue/issue.const.ts @@ -1,12 +1,7 @@ import {ConfigFormConfig} from '../config/global-config.model'; -import { - DEFAULT_JIRA_CFG, - JIRA_ADVANCED_FORM_CFG, - JIRA_CONFIG_FORM_SECTION, - JIRA_CREDENTIALS_FORM_CFG -} from './jira/jira.const'; +import {DEFAULT_JIRA_CFG, JIRA_CONFIG_FORM_SECTION} from './jira/jira.const'; import {IssueProviderKey} from './issue'; -import {DEFAULT_GITHUB_CFG, GITHUB_CONFIG_FORM, GITHUB_CONFIG_FORM_SECTION} from './github/github.const'; +import {DEFAULT_GITHUB_CFG, GITHUB_CONFIG_FORM_SECTION} from './github/github.const'; import {T} from '../../t.const'; export const LEGACY_GITHUB_TYPE = 'GIT'; diff --git a/src/app/features/issue/jira/jira.const.ts b/src/app/features/issue/jira/jira.const.ts index fb89b39269..f2971e9125 100644 --- a/src/app/features/issue/jira/jira.const.ts +++ b/src/app/features/issue/jira/jira.const.ts @@ -3,7 +3,6 @@ import {JiraCfg} from './jira'; import {FormlyFieldConfig} from '@ngx-formly/core'; import {GITHUB_INITIAL_POLL_DELAY} from '../github/github.const'; import {T} from '../../../t.const'; -import {JIRA_TYPE} from '../issue.const'; import {ConfigFormSection} from '../../config/global-config.model'; export const JIRA_DATETIME_FORMAT = 'YYYY-MM-DDTHH:mm:ss.SSZZ'; @@ -175,7 +174,7 @@ export const JIRA_ADVANCED_FORM_CFG: FormlyFieldConfig[] = [ export const JIRA_CONFIG_FORM_SECTION: ConfigFormSection = { title: 'Jira', - key: JIRA_TYPE, + key: 'JIRA', customSection: 'JIRA_CFG', /* tslint:disable */ help: `Here you can configure SuperProductivity to list open GithHub issues for a specific repository in the task creation panel in the daily planning view. They will be listed as suggestions and will provide a link to the issue as well as more information about it.
In addition you can automatically add and sync all open issues to your task backlog.
" + }, "ISSUE_CONTENT": { "ASSIGNEE": "Assignee", "AT": "at",