Skip to content

Commit c2fbccb

Browse files
committedFeb 14, 2017
Removing orphaned environments directive
Fixes #1252
1 parent e56ff68 commit c2fbccb

File tree

4 files changed

+0
-101
lines changed

4 files changed

+0
-101
lines changed
 

‎app/scripts/directives/resources.js

-12
Original file line numberDiff line numberDiff line change
@@ -136,18 +136,6 @@ angular.module('openshiftConsole')
136136
templateUrl: 'views/_volume-claim-templates.html'
137137
};
138138
})
139-
.directive('environment', function() {
140-
return {
141-
restrict: 'E',
142-
scope: {
143-
envVars: '='
144-
},
145-
templateUrl: 'views/directives/environment.html',
146-
controller: function($scope) {
147-
$scope.expanded = {};
148-
}
149-
};
150-
})
151139
.directive('hpa', function() {
152140
return {
153141
restrict: 'E',

‎app/views/directives/environment.html

-37
This file was deleted.

‎dist/scripts/scripts.js

-11
Original file line numberDiff line numberDiff line change
@@ -10716,17 +10716,6 @@ templates:"="
1071610716
},
1071710717
templateUrl:"views/_volume-claim-templates.html"
1071810718
};
10719-
}).directive("environment", function() {
10720-
return {
10721-
restrict:"E",
10722-
scope:{
10723-
envVars:"="
10724-
},
10725-
templateUrl:"views/directives/environment.html",
10726-
controller:[ "$scope", function(a) {
10727-
a.expanded = {};
10728-
} ]
10729-
};
1073010719
}).directive("hpa", function() {
1073110720
return {
1073210721
restrict:"E",

‎dist/scripts/templates.js

-41
Original file line numberDiff line numberDiff line change
@@ -6997,47 +6997,6 @@ angular.module('openshiftConsoleTemplates', []).run(['$templateCache', function(
69976997
);
69986998

69996999

7000-
$templateCache.put('views/directives/environment.html',
7001-
"<div ng-if=\"envVars.length\" class=\"table-responsive\" style=\"margin-top: 5px\">\n" +
7002-
"<table class=\"table table-bordered environment-variables\">\n" +
7003-
"<thead>\n" +
7004-
"<tr>\n" +
7005-
"<th>Name</th>\n" +
7006-
"<th>Value</th>\n" +
7007-
"</tr>\n" +
7008-
"</thead>\n" +
7009-
"<tbody>\n" +
7010-
"<tr ng-repeat=\"env in envVars\">\n" +
7011-
"<td>{{env.name}}</td>\n" +
7012-
"<td ng-if=\"!env.valueFrom\">\n" +
7013-
"<truncate-long-text class=\"env-var-value\" content=\"env.value\" limit=\"200\" newline-limit=\"3\" expandable=\"true\" prettify-json=\"true\"></truncate-long-text>\n" +
7014-
"</td>\n" +
7015-
"<td ng-if=\"env.valueFrom\">\n" +
7016-
"<span class=\"fa fa-external-link-square\" style=\"cursor: help\" data-toggle=\"popover\" data-trigger=\"hover\" data-content=\"This is a referenced value that will be generated when a container is created. On running pods you can check the resolved values by going to the Terminal tab and echoing the environment variable.\"></span>\n" +
7017-
"<span ng-repeat=\"(key, value) in env.valueFrom\">\n" +
7018-
"<span ng-switch on=\"key\">\n" +
7019-
"<span ng-switch-when=\"configMapKeyRef\">\n" +
7020-
"Set to the key <b>{{value.key}}</b> in config map <b>{{value.name}}</b>.\n" +
7021-
"</span>\n" +
7022-
"<span ng-switch-when=\"secretKeyRef\">\n" +
7023-
"Set to the key <b>{{value.key}}</b> in secret <b>{{value.name}}</b>.\n" +
7024-
"</span>\n" +
7025-
"<span ng-switch-when=\"fieldRef\">\n" +
7026-
"Set to the field <b>{{value.fieldPath}}</b> in the current object.\n" +
7027-
"</span>\n" +
7028-
"<span ng-switch-default>\n" +
7029-
"Set to a reference on a <b>{{key}}</b>.\n" +
7030-
"</span>\n" +
7031-
"</span>\n" +
7032-
"</span>\n" +
7033-
"</td>\n" +
7034-
"</tr>\n" +
7035-
"</tbody>\n" +
7036-
"</table>\n" +
7037-
"</div>"
7038-
);
7039-
7040-
70417000
$templateCache.put('views/directives/events-badge.html',
70427001
"<a ng-href=\"project/{{projectContext.projectName}}/browse/events\" class=\"events-badge visible-xs\"><span class=\"event-label\">Events</span><span ng-if=\"warningCount\" class=\"mar-left-md\"><span class=\"pficon pficon-warning-triangle-o mar-right-sm\" aria-hidden=\"true\"></span><span class=\"sr-only\">Warning</span><span class=\"event-count\">{{warningCount}}</span></span><span ng-if=\"normalCount\" class=\"mar-left-sm\"><span class=\"pficon pficon-info mar-right-sm\" aria-hidden=\"true\"></span><span class=\"sr-only\">Normal</span><span class=\"event-count\">{{normalCount}}</span></span></a>\n" +
70437002
"<a href=\"\" ng-click=\"expandSidebar()\" ng-if=\"sidebarCollapsed\" class=\"events-badge hidden-xs\"><span class=\"events-sidebar-expand fa fa-arrow-circle-o-left mar-right-md\"><span class=\"sr-only\">Expand event sidebar</span></span><span class=\"event-label\">Events</span><span ng-if=\"warningCount\" class=\"mar-left-md\"><span class=\"pficon pficon-warning-triangle-o mar-right-sm\" aria-hidden=\"true\"></span><span class=\"sr-only\">Warning</span><span class=\"event-count\">{{warningCount}}</span></span><span ng-if=\"normalCount\" class=\"mar-left-sm\"><span class=\"pficon pficon-info mar-right-sm\" aria-hidden=\"true\"></span><span class=\"sr-only\">Normal</span><span class=\"event-count\">{{normalCount}}</span></span></a>"

0 commit comments

Comments
 (0)