Alarm Details field as JSON
This commit is contained in:
parent
7ee8f11a65
commit
e5d0733a3d
@ -851,6 +851,9 @@ export class AlarmsTableWidgetComponent extends PageComponent implements OnInit,
|
|||||||
content = this.defaultContent(key, contentInfo, value);
|
content = this.defaultContent(key, contentInfo, value);
|
||||||
}
|
}
|
||||||
if (isDefined(content)) {
|
if (isDefined(content)) {
|
||||||
|
if (typeof content === 'object') {
|
||||||
|
content = JSON.stringify(content);
|
||||||
|
}
|
||||||
content = this.utils.customTranslation(content, content);
|
content = this.utils.customTranslation(content, content);
|
||||||
switch (typeof content) {
|
switch (typeof content) {
|
||||||
case 'string':
|
case 'string':
|
||||||
|
|||||||
@ -271,6 +271,11 @@ export const alarmFields: {[fieldName: string]: AlarmField} = {
|
|||||||
keyName: 'assignee',
|
keyName: 'assignee',
|
||||||
value: 'assignee',
|
value: 'assignee',
|
||||||
name: 'alarm.assignee'
|
name: 'alarm.assignee'
|
||||||
|
},
|
||||||
|
details: {
|
||||||
|
keyName: 'details',
|
||||||
|
value: 'details',
|
||||||
|
name: 'alarm.details'
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user