add support for number precision in promoted attributes, closes #245

This commit is contained in:
azivner
2018-11-30 17:36:41 +01:00
parent 4577b03fc9
commit ba7c8e77e5
4 changed files with 17 additions and 4 deletions

View File

@@ -67,7 +67,8 @@ function AttributesModel() {
attr.labelDefinition = (attr.type === 'label-definition' && attr.value) ? attr.value : {
labelType: "text",
multiplicityType: "singlevalue",
isPromoted: true
isPromoted: true,
numberPrecision: 0
};
attr.relationDefinition = (attr.type === 'relation-definition' && attr.value) ? attr.value : {
@@ -187,7 +188,8 @@ function AttributesModel() {
labelDefinition: {
labelType: "text",
multiplicityType: "singlevalue",
isPromoted: true
isPromoted: true,
numberPrecision: 0
},
relationDefinition: {
multiplicityType: "singlevalue",