Fix edit field config indentation

pull/4338/head
Alex Dik 9 years ago
parent 09810c897f
commit e904c38981
  1. 48
      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 {BooleanField} from "../field-types/wp-edit-boolean-field.module";
import {DateField} from "../field-types/wp-edit-date-field.module"; import {DateField} from "../field-types/wp-edit-date-field.module";
import {WikiTextareaField} from "../field-types/wp-edit-wiki-textarea-field.module"; import {WikiTextareaField} from "../field-types/wp-edit-wiki-textarea-field.module";
import {openprojectModule} from "../../../angular-modules";
//TODO: Implement //TODO: Implement
class DateRangeField extends Field {} class DateRangeField extends Field {
}
//TODO: See file wp-field.service.js:getInplaceEditStrategy for more eventual classes //TODO: See file wp-field.service.js:getInplaceEditStrategy for more eventual classes
angular openprojectModule
.module('openproject') .run((wpEditField:WorkPackageEditFieldService) => {
.run((wpEditField:WorkPackageEditFieldService) => { wpEditField.defaultType = 'text';
wpEditField.defaultType = 'text'; wpEditField
wpEditField .addFieldType(TextField, 'text', ['String'])
.addFieldType(TextField, 'text', ['String']) .addFieldType(IntegerField, 'integer', ['Integer'])
.addFieldType(IntegerField, 'integer', ['Integer']) .addFieldType(DurationField, 'duration', ['Duration'])
.addFieldType(DurationField, 'duration', ['Duration']) .addFieldType(SelectField, 'select', ['Priority',
.addFieldType(SelectField, 'select', ['Priority', 'Status',
'Status', 'Type',
'Type', 'User',
'User', 'Version',
'Version', 'Category',
'Category', 'StringObject',
'StringObject', 'Project'])
'Project']) .addFieldType(FloatField, 'float', ['Float'])
.addFieldType(FloatField, 'float', ['Float']) .addFieldType(IntegerField, 'integer', ['Integer'])
.addFieldType(IntegerField, 'integer', ['Integer']) .addFieldType(BooleanField, 'boolean', ['Boolean'])
.addFieldType(BooleanField, 'boolean', ['Boolean']) .addFieldType(DateField, 'date', ['Date'])
.addFieldType(DateField, 'date', ['Date']) .addFieldType(WikiTextareaField, 'wiki-textarea', ['Formattable']);
.addFieldType(WikiTextareaField, 'wiki-textarea', ['Formattable']); });
});

Loading…
Cancel
Save