Fix bug in knowledge editor
@@ -210,16 +210,13 @@ export class OntologyCtrl {
this.propertyDetail.range = {};
this.propertyDetail.range.rangeType = this.selectedRangeType;
this.propertyDetail.rangeDefined = true;
- if (this.selectedRangeType === 'PRIMITIVE')
- {
+ if (this.selectedRangeType === 'PRIMITIVE') {
this.propertyDetail.rdfsDatatype = "";
- } else if (this.selectedRangeType === 'QUANTITATIVE_VALUE')
- {
+ } else if (this.selectedRangeType === 'QUANTITATIVE_VALUE') {
this.propertyDetail.range.minValue = -1;
this.propertyDetail.range.maxValue = -1;
this.propertyDetail.range.unitCode = "";
- } else if (this.selectedRangeType === 'ENUMERATION')
- {
+ } else if (this.selectedRangeType === 'ENUMERATION') {
this.propertyDetail.range.minValue = -1;
this.propertyDetail.range.maxValue = -1;
this.propertyDetail.range.unitCode = "";
@@ -294,7 +291,6 @@ export class OntologyCtrl {
// });
-
showToast(text) {
this.$mdToast.show(
this.$mdToast.simple()
@@ -315,9 +311,6 @@ export class OntologyCtrl {
}
openAddElementDialog(elementType, conceptId?) {
- if(conceptId === undefined) {
- this.openAddElementDialog(elementType, undefined);
- } else {
this.$mdDialog.show({
controller: AddDialogController,
controllerAs: 'ctrl',
@@ -337,7 +330,6 @@ export class OntologyCtrl {
}
})
}
- }
// TODO: Duplicate Method
/*
