|
|
|
@ -62,6 +62,7 @@ export class WorkPackageEditFieldController { |
|
|
|
|
protected $q, |
|
|
|
|
protected FocusHelper, |
|
|
|
|
protected NotificationsService, |
|
|
|
|
protected ConfigurationService, |
|
|
|
|
protected wpCacheService: WorkPackageCacheService, |
|
|
|
|
protected I18n) { |
|
|
|
|
|
|
|
|
@ -251,6 +252,12 @@ export class WorkPackageEditFieldController { |
|
|
|
|
this.deactivate(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public onlyInAccessibilityMode(callback) { |
|
|
|
|
if (this.ConfigurationService.accessibilityModeEnabled()) { |
|
|
|
|
callback.apply(this); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
protected buildEditField(): ng.IPromise<any> { |
|
|
|
|
return this.formCtrl.loadSchema().then(schema => { |
|
|
|
|
this.field = <EditField>this.wpEditField.getField(this.workPackage, this.fieldName, schema[this.fieldName]); |
|
|
|
|