summaryrefslogtreecommitdiffstats
path: root/catalog-ui/src/app/ng2/components/ui
diff options
context:
space:
mode:
Diffstat (limited to 'catalog-ui/src/app/ng2/components/ui')
-rw-r--r--catalog-ui/src/app/ng2/components/ui/dynamic-element/dynamic-element.component.ts17
1 files changed, 14 insertions, 3 deletions
diff --git a/catalog-ui/src/app/ng2/components/ui/dynamic-element/dynamic-element.component.ts b/catalog-ui/src/app/ng2/components/ui/dynamic-element/dynamic-element.component.ts
index 5e3214d888..50c77d3f53 100644
--- a/catalog-ui/src/app/ng2/components/ui/dynamic-element/dynamic-element.component.ts
+++ b/catalog-ui/src/app/ng2/components/ui/dynamic-element/dynamic-element.component.ts
@@ -28,7 +28,7 @@ import {UiElementInputComponent} from "../form-components/input/ui-element-input
import {UiElementPopoverInputComponent} from "../form-components/popover-input/ui-element-popover-input.component";
import {UiElementIntegerInputComponent} from "../form-components/integer-input/ui-element-integer-input.component";
import {UiElementDropDownComponent, DropdownValue} from "../form-components/dropdown/ui-element-dropdown.component";
-import {PROPERTY_DATA} from "../../../../utils/constants";
+import {PROPERTY_DATA, PROPERTY_TYPES} from "../../../../utils/constants";
enum DynamicElementComponentCreatorIdentifier {
STRING,
@@ -38,7 +38,8 @@ enum DynamicElementComponentCreatorIdentifier {
SUBNETPOOLID,
ENUM,
LIST,
- DEFAULT
+ DEFAULT,
+ TIMESTAMP
}
@Component({
@@ -107,6 +108,9 @@ export class DynamicElementComponent {
case this.type === 'string':
this.elementCreatorIdentifier = DynamicElementComponentCreatorIdentifier.STRING;
break;
+ case this.type === PROPERTY_TYPES.TIMESTAMP:
+ this.elementCreatorIdentifier = DynamicElementComponentCreatorIdentifier.TIMESTAMP;
+ break;
case this.type === 'boolean':
this.elementCreatorIdentifier = DynamicElementComponentCreatorIdentifier.BOOLEAN;
break;
@@ -146,6 +150,9 @@ export class DynamicElementComponent {
case 'string':
this.elementCreatorIdentifier = DynamicElementComponentCreatorIdentifier.STRING;
break;
+ case PROPERTY_TYPES.TIMESTAMP:
+ this.elementCreatorIdentifier = DynamicElementComponentCreatorIdentifier.TIMESTAMP;
+ break;
case 'boolean':
this.elementCreatorIdentifier = DynamicElementComponentCreatorIdentifier.BOOLEAN;
break;
@@ -190,6 +197,10 @@ export class DynamicElementComponent {
this.createComponent(UiElementInputComponent);
break;
+ case DynamicElementComponentCreatorIdentifier.TIMESTAMP:
+ this.createComponent(UiElementInputComponent);
+ break;
+
case DynamicElementComponentCreatorIdentifier.BOOLEAN:
this.createComponent(UiElementDropDownComponent);
@@ -210,7 +221,7 @@ export class DynamicElementComponent {
case DynamicElementComponentCreatorIdentifier.DEFAULT:
default:
this.createComponent(UiElementInputComponent);
- console.log("ERROR: No ui-models component to handle type: " + this.type);
+ console.error("ERROR: No ui-models component to handle type: " + this.type);
}
// }
// //There are consraints