stratos-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dini...@apache.org
Subject [3/7] stratos git commit: Removing Undeploy button for the tenants for multitenant application
Date Wed, 16 Sep 2015 11:44:18 GMT
 Removing Undeploy button for the tenants for multitenant application


Project: http://git-wip-us.apache.org/repos/asf/stratos/repo
Commit: http://git-wip-us.apache.org/repos/asf/stratos/commit/c5bbeaa3
Tree: http://git-wip-us.apache.org/repos/asf/stratos/tree/c5bbeaa3
Diff: http://git-wip-us.apache.org/repos/asf/stratos/diff/c5bbeaa3

Branch: refs/heads/stratos-4.1.x
Commit: c5bbeaa30bd0526ba80816d0df92e4ab27539b7b
Parents: cedd128
Author: Dinithi <dinithis@wso2.com>
Authored: Wed Sep 16 10:47:24 2015 +0530
Committer: Dinithi <dinithis@wso2.com>
Committed: Wed Sep 16 10:47:24 2015 +0530

----------------------------------------------------------------------
 .../themes/theme0/partials/applications_form.hbs    | 16 ++++++++++++----
 1 file changed, 12 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/stratos/blob/c5bbeaa3/components/org.apache.stratos.manager.console/console/themes/theme0/partials/applications_form.hbs
----------------------------------------------------------------------
diff --git a/components/org.apache.stratos.manager.console/console/themes/theme0/partials/applications_form.hbs
b/components/org.apache.stratos.manager.console/console/themes/theme0/partials/applications_form.hbs
index 43d7c20..03c4bae 100644
--- a/components/org.apache.stratos.manager.console/console/themes/theme0/partials/applications_form.hbs
+++ b/components/org.apache.stratos.manager.console/console/themes/theme0/partials/applications_form.hbs
@@ -200,16 +200,20 @@
                                         </div>
                                     <div class="bottom-bar-wrapper">
                                     <div class="bottom-bar">
-                                        <button class="btn btn-danger btn-lg hover-undeploy"
-                                                type="button"
-                                                id="{{applicationId}}"> Undeploy
-                                        </button>
+
                                         <button class="btn btn-info btn-lg hover-details"
type="button"
                                                 id="details_{{applicationId}}"
                                                 data-url="{{url ""}}/applications/{{applicationId}}/">
                                             View
                                         </button>
                                     {{#if multiTenant}}
+                                        {{#if isSuperTenant}}
+                                            <button class="btn btn-danger btn-lg hover-undeploy"
+                                                    type="button"
+                                                    id="{{applicationId}}"> Undeploy
+                                            </button>
+                                        {{/if}}
+
                                         {{#if signUpsExist}}
                                                 <button class="btn btn-warning btn-lg
hover-remove-signup"
                                                         type="button"
@@ -231,6 +235,10 @@
                                                 id="details_list_{{applicationId}}"
                                                 data-url="{{url ""}}/applications/{{applicationId}}/"
> View
                                         </button>
+                                        <button class="btn btn-danger btn-lg hover-undeploy"
+                                                type="button"
+                                                id="{{applicationId}}"> Undeploy
+                                        </button>
                                     </div>
                                     <div class="bottom-bar-wrapper">
                                     <div class="bottom-bar">


Mime
View raw message