diff --git a/src/app/models/template.model.ts b/src/app/models/template.model.ts
index 23cbbe6..94be281 100644
--- a/src/app/models/template.model.ts
+++ b/src/app/models/template.model.ts
@@ -7,4 +7,10 @@ export class TemplateModel extends BaseModel {
version = 0;
first_id: IdModel = null;
parameters: {name: string, range: {[prop: string]: any}, rangeString?: string}[] = [];
+
+ deserialize(input: any): this {
+ Object.assign(this, input);
+
+ return this;
+ }
}
diff --git a/src/app/models/user.model.ts b/src/app/models/user.model.ts
index 5e1488f..a3f7cd7 100644
--- a/src/app/models/user.model.ts
+++ b/src/app/models/user.model.ts
@@ -9,7 +9,7 @@ export class UserModel extends BaseModel{
email = '';
level = '';
location = '';
- device_name = '';
+ devices = [''];
edit = false;
deserialize(input: any): this {
@@ -19,7 +19,7 @@ export class UserModel extends BaseModel{
}
sendFormat(mode = 'user') {
- const keys = ['name', 'email', 'location', 'device_name'];
+ const keys = ['name', 'email', 'location', 'devices'];
if (mode === 'admin') {
keys.push('level');
}
diff --git a/src/app/sample/sample.component.html b/src/app/sample/sample.component.html
index 6260eda..b8f1818 100644
--- a/src/app/sample/sample.component.html
+++ b/src/app/sample/sample.component.html
@@ -160,14 +160,23 @@
-
- {{parameterInput.errors.failure}}
- Cannot be empty
-
+
+
+
+ Cannot be empty
+
+
+ {{parameterInput.errors.failure}}
+ Cannot be empty
+
+
@@ -182,21 +191,30 @@
-
- {{parameterInput.errors.failure}}
- Cannot be empty
-
-
- Cannot be empty
-
+
+
+ Cannot be empty
+
+
+
+ Cannot be empty
+
+
+ {{parameterInput.errors.failure}}
+ Cannot be empty
+
+