From e904c38981c6cbd4b477a509ff574ef0eb75eaef Mon Sep 17 00:00:00 2001 From: Alex Dik Date: Thu, 12 May 2016 10:51:44 +0200 Subject: [PATCH] Fix edit field config indentation --- .../wp-edit-field/wp-edit-field.config.ts | 48 +++++++++---------- 1 file changed, 24 insertions(+), 24 deletions(-) diff --git a/frontend/app/components/wp-edit/wp-edit-field/wp-edit-field.config.ts b/frontend/app/components/wp-edit/wp-edit-field/wp-edit-field.config.ts index 9fc27c8b90..63f63e1386 100644 --- a/frontend/app/components/wp-edit/wp-edit-field/wp-edit-field.config.ts +++ b/frontend/app/components/wp-edit/wp-edit-field/wp-edit-field.config.ts @@ -36,33 +36,33 @@ import {FloatField} from "../field-types/wp-edit-float-field.module"; import {BooleanField} from "../field-types/wp-edit-boolean-field.module"; import {DateField} from "../field-types/wp-edit-date-field.module"; import {WikiTextareaField} from "../field-types/wp-edit-wiki-textarea-field.module"; +import {openprojectModule} from "../../../angular-modules"; //TODO: Implement -class DateRangeField extends Field {} - +class DateRangeField extends Field { +} //TODO: See file wp-field.service.js:getInplaceEditStrategy for more eventual classes -angular - .module('openproject') - .run((wpEditField:WorkPackageEditFieldService) => { - wpEditField.defaultType = 'text'; - wpEditField - .addFieldType(TextField, 'text', ['String']) - .addFieldType(IntegerField, 'integer', ['Integer']) - .addFieldType(DurationField, 'duration', ['Duration']) - .addFieldType(SelectField, 'select', ['Priority', - 'Status', - 'Type', - 'User', - 'Version', - 'Category', - 'StringObject', - 'Project']) - .addFieldType(FloatField, 'float', ['Float']) - .addFieldType(IntegerField, 'integer', ['Integer']) - .addFieldType(BooleanField, 'boolean', ['Boolean']) - .addFieldType(DateField, 'date', ['Date']) - .addFieldType(WikiTextareaField, 'wiki-textarea', ['Formattable']); - }); +openprojectModule + .run((wpEditField:WorkPackageEditFieldService) => { + wpEditField.defaultType = 'text'; + wpEditField + .addFieldType(TextField, 'text', ['String']) + .addFieldType(IntegerField, 'integer', ['Integer']) + .addFieldType(DurationField, 'duration', ['Duration']) + .addFieldType(SelectField, 'select', ['Priority', + 'Status', + 'Type', + 'User', + 'Version', + 'Category', + 'StringObject', + 'Project']) + .addFieldType(FloatField, 'float', ['Float']) + .addFieldType(IntegerField, 'integer', ['Integer']) + .addFieldType(BooleanField, 'boolean', ['Boolean']) + .addFieldType(DateField, 'date', ['Date']) + .addFieldType(WikiTextareaField, 'wiki-textarea', ['Formattable']); + });