Commit c16644d0 by Samuel Padgett

Don't show redeploy message if not binding to an application

Don't show a user the message saying they need to redeploy their app if
they haven't bound the service directly to an application.
parent 0e0011f6
...@@ -117,7 +117,7 @@ hawtioPluginLoader.addModule('openshiftCommonUI'); ...@@ -117,7 +117,7 @@ hawtioPluginLoader.addModule('openshiftCommonUI');
" that you may need to reference in your application.\n" + " that you may need to reference in your application.\n" +
" <span ng-if=\"ctrl.showPodPresets\">Its data will be available to your application as environment variables.</span>\n" + " <span ng-if=\"ctrl.showPodPresets\">Its data will be available to your application as environment variables.</span>\n" +
" </div>\n" + " </div>\n" +
" <div class=\"alert alert-info bind-info\">\n" + " <div class=\"alert alert-info bind-info\" ng-if=\"ctrl.bindType === 'application'\">\n" +
" <span class=\"pficon pficon-info\" aria-hidden=\"true\"></span>\n" + " <span class=\"pficon pficon-info\" aria-hidden=\"true\"></span>\n" +
" <span class=\"sr-only\">Info</span>\n" + " <span class=\"sr-only\">Info</span>\n" +
" The binding secret will only be available to new pods. You will need to redeploy your application.\n" + " The binding secret will only be available to new pods. You will need to redeploy your application.\n" +
......
...@@ -288,7 +288,7 @@ hawtioPluginLoader.addModule('openshiftCommonUI'); ...@@ -288,7 +288,7 @@ hawtioPluginLoader.addModule('openshiftCommonUI');
" that you may need to reference in your application.\n" + " that you may need to reference in your application.\n" +
" <span ng-if=\"ctrl.showPodPresets\">Its data will be available to your application as environment variables.</span>\n" + " <span ng-if=\"ctrl.showPodPresets\">Its data will be available to your application as environment variables.</span>\n" +
" </div>\n" + " </div>\n" +
" <div class=\"alert alert-info bind-info\">\n" + " <div class=\"alert alert-info bind-info\" ng-if=\"ctrl.bindType === 'application'\">\n" +
" <span class=\"pficon pficon-info\" aria-hidden=\"true\"></span>\n" + " <span class=\"pficon pficon-info\" aria-hidden=\"true\"></span>\n" +
" <span class=\"sr-only\">Info</span>\n" + " <span class=\"sr-only\">Info</span>\n" +
" The binding secret will only be available to new pods. You will need to redeploy your application.\n" + " The binding secret will only be available to new pods. You will need to redeploy your application.\n" +
......
...@@ -88,7 +88,7 @@ angular.module('openshiftCommonUI').run(['$templateCache', function($templateCac ...@@ -88,7 +88,7 @@ angular.module('openshiftCommonUI').run(['$templateCache', function($templateCac
" that you may need to reference in your application.\n" + " that you may need to reference in your application.\n" +
" <span ng-if=\"ctrl.showPodPresets\">Its data will be available to your application as environment variables.</span>\n" + " <span ng-if=\"ctrl.showPodPresets\">Its data will be available to your application as environment variables.</span>\n" +
" </div>\n" + " </div>\n" +
" <div class=\"alert alert-info bind-info\">\n" + " <div class=\"alert alert-info bind-info\" ng-if=\"ctrl.bindType === 'application'\">\n" +
" <span class=\"pficon pficon-info\" aria-hidden=\"true\"></span>\n" + " <span class=\"pficon pficon-info\" aria-hidden=\"true\"></span>\n" +
" <span class=\"sr-only\">Info</span>\n" + " <span class=\"sr-only\">Info</span>\n" +
" The binding secret will only be available to new pods. You will need to redeploy your application.\n" + " The binding secret will only be available to new pods. You will need to redeploy your application.\n" +
......
...@@ -24,7 +24,7 @@ ...@@ -24,7 +24,7 @@
that you may need to reference in your application. that you may need to reference in your application.
<span ng-if="ctrl.showPodPresets">Its data will be available to your application as environment variables.</span> <span ng-if="ctrl.showPodPresets">Its data will be available to your application as environment variables.</span>
</div> </div>
<div class="alert alert-info bind-info"> <div class="alert alert-info bind-info" ng-if="ctrl.bindType === 'application'">
<span class="pficon pficon-info" aria-hidden="true"></span> <span class="pficon pficon-info" aria-hidden="true"></span>
<span class="sr-only">Info</span> <span class="sr-only">Info</span>
The binding secret will only be available to new pods. You will need to redeploy your application. The binding secret will only be available to new pods. You will need to redeploy your application.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment