summaryrefslogtreecommitdiffstats
path: root/ui-react/src/api
diff options
context:
space:
mode:
authorsebdet <sebastien.determe@intl.att.com>2020-04-16 00:43:48 +0200
committerChristophe Closset <christophe.closset@intl.att.com>2020-04-16 07:04:34 +0000
commitedaf4f9e6d0f8e1b95115cc39492c84d730ba1a2 (patch)
tree3c15cf396a047f9f7c7bc34956986c6c62b14ede /ui-react/src/api
parent5309056d530fc14ee603c38d32290db514e03c67 (diff)
Add template name to UI
Add template name to the UI loop viewer + change color of logs panel Issue-ID: CLAMP-826 Signed-off-by: sebdet <sebastien.determe@intl.att.com> Change-Id: I6776729cefc0597067ae8ef722f7d6e488a12cad
Diffstat (limited to 'ui-react/src/api')
-rw-r--r--ui-react/src/api/LoopCache.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/ui-react/src/api/LoopCache.js b/ui-react/src/api/LoopCache.js
index c54337f2..4f22dc2b 100644
--- a/ui-react/src/api/LoopCache.js
+++ b/ui-react/src/api/LoopCache.js
@@ -219,4 +219,11 @@ export default class LoopCache {
getComponentStates() {
return this.loopJsonCache.components;
}
+
+ getTemplateName() {
+ if (this.loopJsonCache["loopTemplate"] !== undefined) {
+ return this.loopJsonCache["loopTemplate"].name;
+ }
+ return null;
+ }
}