|
|
@ -9,7 +9,6 @@ import { FormArray, FormGroup, FormControl } from '@angular/forms'; |
|
|
|
import { PathHelperService } from 'core-app/core/path-helper/path-helper.service'; |
|
|
|
import { PathHelperService } from 'core-app/core/path-helper/path-helper.service'; |
|
|
|
import { I18nService } from 'core-app/core/i18n/i18n.service'; |
|
|
|
import { I18nService } from 'core-app/core/i18n/i18n.service'; |
|
|
|
import idFromLink from 'core-app/features/hal/helpers/id-from-link'; |
|
|
|
import idFromLink from 'core-app/features/hal/helpers/id-from-link'; |
|
|
|
import { UserPreferencesService } from 'core-app/features/user-preferences/state/user-preferences.service'; |
|
|
|
|
|
|
|
import { HalSourceLink } from 'core-app/features/hal/resources/hal-resource'; |
|
|
|
import { HalSourceLink } from 'core-app/features/hal/resources/hal-resource'; |
|
|
|
|
|
|
|
|
|
|
|
@Component({ |
|
|
|
@Component({ |
|
|
@ -30,10 +29,8 @@ export class NotificationSettingsTableComponent { |
|
|
|
title: this.I18n.t('js.notifications.settings.reasons.mentioned.title'), |
|
|
|
title: this.I18n.t('js.notifications.settings.reasons.mentioned.title'), |
|
|
|
description: this.I18n.t('js.notifications.settings.reasons.mentioned.description'), |
|
|
|
description: this.I18n.t('js.notifications.settings.reasons.mentioned.description'), |
|
|
|
}, |
|
|
|
}, |
|
|
|
involved_header: { |
|
|
|
assignee: this.I18n.t('js.notifications.settings.reasons.assignee'), |
|
|
|
title: this.I18n.t('js.notifications.settings.reasons.involved.title'), |
|
|
|
responsible: this.I18n.t('js.notifications.settings.reasons.responsible'), |
|
|
|
description: this.I18n.t('js.notifications.settings.reasons.involved.description'), |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
watched_header: this.I18n.t('js.notifications.settings.reasons.watched'), |
|
|
|
watched_header: this.I18n.t('js.notifications.settings.reasons.watched'), |
|
|
|
work_package_commented_header: this.I18n.t('js.notifications.settings.reasons.work_package_commented'), |
|
|
|
work_package_commented_header: this.I18n.t('js.notifications.settings.reasons.work_package_commented'), |
|
|
|
work_package_created_header: this.I18n.t('js.notifications.settings.reasons.work_package_created'), |
|
|
|
work_package_created_header: this.I18n.t('js.notifications.settings.reasons.work_package_created'), |
|
|
@ -55,7 +52,8 @@ export class NotificationSettingsTableComponent { |
|
|
|
addProjectSettings(project:HalSourceLink):void { |
|
|
|
addProjectSettings(project:HalSourceLink):void { |
|
|
|
this.settings.push(new FormGroup({ |
|
|
|
this.settings.push(new FormGroup({ |
|
|
|
project: new FormControl(project), |
|
|
|
project: new FormControl(project), |
|
|
|
involved: new FormControl(false), |
|
|
|
assignee: new FormControl(false), |
|
|
|
|
|
|
|
responsible: new FormControl(false), |
|
|
|
workPackageCreated: new FormControl(false), |
|
|
|
workPackageCreated: new FormControl(false), |
|
|
|
workPackageProcessed: new FormControl(false), |
|
|
|
workPackageProcessed: new FormControl(false), |
|
|
|
workPackageScheduled: new FormControl(false), |
|
|
|
workPackageScheduled: new FormControl(false), |
|
|
|