From a7f8f8f061774dccf13eee7b514aea8023dca051 Mon Sep 17 00:00:00 2001 From: "michele.artini" Date: Tue, 2 Nov 2021 11:50:17 +0100 Subject: [PATCH] zeppelin button in inspector page --- .../main/resources/templates/inspector.html | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/apps/dhp-mdstore-manager/src/main/resources/templates/inspector.html b/apps/dhp-mdstore-manager/src/main/resources/templates/inspector.html index 0b89e5f4..a3acf5cf 100644 --- a/apps/dhp-mdstore-manager/src/main/resources/templates/inspector.html +++ b/apps/dhp-mdstore-manager/src/main/resources/templates/inspector.html @@ -62,6 +62,14 @@

Metadata Inspector

+
+
+ + +
+

@@ -184,6 +192,7 @@ $scope.records = []; $scope.versionId = versionId(); $scope.limit = limit(); + $scope.zeppelinTemplates = []; $scope.reload = function() { showSpinner(); @@ -199,9 +208,17 @@ alert('ERROR: ' + res.data.message); }); }; + + $scope.obtainZeppelinTemplates = function() { + $http.get('../../zeppelin/templates?' + $.now()).then(function successCallback(res) { + $scope.zeppelinTemplates = res.data; + }, function errorCallback(res) { + alert('ERROR: ' + res.data.message); + }); + }; $scope.reload(); - + $scope.obtainZeppelinTemplates(); });