[Info Bubble] Include type in common metadata

Include type in common domain object metadata to display
in an info bubble, WTD-884.
This commit is contained in:
Victor Woeltjen 2015-06-04 12:34:56 -07:00
parent c9e33b1d31
commit cae8372d34

View File

@ -55,11 +55,17 @@ define(
} }
function getCommonMetadata() { function getCommonMetadata() {
var type = domainObject.getCapability('type');
// Note that invalid values will be filtered out later
return [ return [
{ {
name: "Updated", name: "Updated",
value: formatTimestamp(model.modified) value: formatTimestamp(model.modified)
}, },
{
name: "Type",
value: type && type.getName()
},
{ {
name: "ID", name: "ID",
value: domainObject.getId() value: domainObject.getId()