From 0407b0b692f40551d85b31a82e3c4d5d59fef782 Mon Sep 17 00:00:00 2001 From: SerenaFeng Date: Mon, 4 Sep 2017 18:09:49 +0800 Subject: hide create_pod function from anonymous user Querying pods is open to everybody But only login users are allowed to create the new pod Change-Id: I1c722580c2c51a8a8b0f84f1ffac451dff20b086 Signed-off-by: SerenaFeng --- .../3rd_party/static/testapi-ui/components/pods/pods.html | 10 +++++++--- .../static/testapi-ui/components/pods/podsController.js | 5 +---- 2 files changed, 8 insertions(+), 7 deletions(-) (limited to 'utils/test/testapi') diff --git a/utils/test/testapi/3rd_party/static/testapi-ui/components/pods/pods.html b/utils/test/testapi/3rd_party/static/testapi-ui/components/pods/pods.html index 7ce36ca7c..e366670a9 100644 --- a/utils/test/testapi/3rd_party/static/testapi-ui/components/pods/pods.html +++ b/utils/test/testapi/3rd_party/static/testapi-ui/components/pods/pods.html @@ -1,8 +1,12 @@ -

{{ctrl.pageHeader}}

-

{{ctrl.pageParagraph}}

+

Pods

+

This page is used to create or query pods.
+ Querying pods is open to everybody.
+ But only login users are granted the privilege to create the new pod. +

+
-
+

Create

diff --git a/utils/test/testapi/3rd_party/static/testapi-ui/components/pods/podsController.js b/utils/test/testapi/3rd_party/static/testapi-ui/components/pods/podsController.js index 201258619..894fcc152 100644 --- a/utils/test/testapi/3rd_party/static/testapi-ui/components/pods/podsController.js +++ b/utils/test/testapi/3rd_party/static/testapi-ui/components/pods/podsController.js @@ -20,7 +20,7 @@ .controller('PodsController', PodsController); PodsController.$inject = [ - '$scope', '$http', '$filter', '$state', 'testapiApiUrl','raiseAlert' + '$rootScope', '$scope', '$http', '$filter', '$state', 'testapiApiUrl','raiseAlert' ]; /** @@ -52,9 +52,6 @@ ctrl.mode = 'metal'; ctrl.details = ''; - ctrl.pageHeader = 'Pods'; - ctrl.pageParagraph = 'This page is used to create or query pods.'; - /** * This is called when the date filter calendar is opened. It * does some event handling, and sets a scope variable so the UI -- cgit 1.2.3-korg