From cae8372d340ba44924f10c2ea17c85a97c575735 Mon Sep 17 00:00:00 2001 From: Victor Woeltjen Date: Thu, 4 Jun 2015 12:34:56 -0700 Subject: [PATCH] [Info Bubble] Include type in common metadata Include type in common domain object metadata to display in an info bubble, WTD-884. --- platform/core/src/capabilities/MetadataCapability.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/platform/core/src/capabilities/MetadataCapability.js b/platform/core/src/capabilities/MetadataCapability.js index f4b9061b8c..677dab0008 100644 --- a/platform/core/src/capabilities/MetadataCapability.js +++ b/platform/core/src/capabilities/MetadataCapability.js @@ -55,11 +55,17 @@ define( } function getCommonMetadata() { + var type = domainObject.getCapability('type'); + // Note that invalid values will be filtered out later return [ { name: "Updated", value: formatTimestamp(model.modified) }, + { + name: "Type", + value: type && type.getName() + }, { name: "ID", value: domainObject.getId()