Skip to content

Commit c773aad

Browse files
author
OpenShift Bot
committed
bump(github.com/openshift/origin-web-console): aac7d52b246630d467ea19881b724a34d1ed08e2
1 parent 5565661 commit c773aad

File tree

1 file changed

+55
-38
lines changed

1 file changed

+55
-38
lines changed

pkg/assets/bindata.go

Lines changed: 55 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -6570,6 +6570,16 @@ details:e
65706570
}, v = function() {
65716571
d.disableAddForm = !1, d.newBinding.name = "", d.newBinding.namespace = o, d.newBinding.newRole = null;
65726572
}, w = function(a) {
6573+
i.list("serviceaccounts", a).then(function(a) {
6574+
var b = _.keys(a.by("metadata.name")).sort();
6575+
angular.extend(d, {
6576+
serviceAccounts:b,
6577+
refreshServiceAccounts:function(a) {
6578+
a && !_.includes(d.serviceAccounts, a) ? d.serviceAccounts = [ a ].concat(b) :d.serviceAccounts = b;
6579+
}
6580+
});
6581+
});
6582+
}, x = function(a) {
65736583
i.list("rolebindings", n, null, {
65746584
errorNotification:!1
65756585
}).then(function(a) {
@@ -6581,9 +6591,9 @@ subjectKindsForUI:k.mapRolebindingsForUI(a.by("metadata.name"), s)
65816591
}, function() {
65826592
a && (d.roleBindings[a.metadata.name] = a, d.subjectKindsForUI = k.mapRolebindingsForUI(d.roleBindings, s)), v();
65836593
});
6584-
}, x = function(b, c) {
6594+
}, y = function(b, c) {
65856595
d.disableAddForm = !0, l.create(b, c, o, n).then(function() {
6586-
w(), u("rolebindingCreate", "success", t.update.subject.success({
6596+
x(), u("rolebindingCreate", "success", t.update.subject.success({
65876597
roleName:b.metadata.name,
65886598
subjectName:c.name
65896599
}));
@@ -6595,9 +6605,9 @@ subjectName:c.name
65956605
httpErr:a("getErrorDetails")(d)
65966606
}));
65976607
});
6598-
}, y = function(b, c, e) {
6608+
}, z = function(b, c, e) {
65996609
d.disableAddForm = !0, l.addSubject(b, c, e, n).then(function() {
6600-
w(), u("rolebindingUpdate", "success", t.update.subject.success({
6610+
x(), u("rolebindingUpdate", "success", t.update.subject.success({
66016611
roleName:b.roleRef.name,
66026612
subjectName:c.name
66036613
}));
@@ -6609,16 +6619,16 @@ subjectName:c.name
66096619
httpErr:a("getErrorDetails")(d)
66106620
}));
66116621
});
6612-
}, z = {};
6613-
c.tab && (z[c.tab] = !0);
6614-
var A = k.getSubjectKinds();
6622+
}, A = {};
6623+
c.tab && (A[c.tab] = !0);
6624+
var B = k.getSubjectKinds();
66156625
angular.extend(d, {
6616-
selectedTab:z,
6626+
selectedTab:A,
66176627
projectName:o,
66186628
alerts:{},
66196629
forms:{},
66206630
emptyMessage:"Loading...",
6621-
subjectKinds:A,
6631+
subjectKinds:B,
66226632
newBinding:{
66236633
role:"",
66246634
kind:c.tab || "User",
@@ -6631,7 +6641,7 @@ mode:{
66316641
edit:!1
66326642
},
66336643
selectTab:function(a) {
6634-
d.newBinding.kind = a;
6644+
d.newBinding.kind = a, d.newBinding.name = "";
66356645
}
66366646
}), angular.extend(d, {
66376647
excludeExistingRoles:function(a) {
@@ -6651,7 +6661,7 @@ return a ? e + (q(a, "description") || b) :b;
66516661
}
66526662
}
66536663
});
6654-
var B = function(a, b, c, e) {
6664+
var C = function(a, b, c, e) {
66556665
var f = {
66566666
alerts:{},
66576667
detailsMarkup:t.remove.areYouSure.html.subject({
@@ -6673,22 +6683,25 @@ roleName:c
66736683
g.withUser().then(function(a) {
66746684
d.user = a;
66756685
}), i.list("projects", {}).then(function(a) {
6676-
var b = _.map(a.by("metadata.name"), function(a) {
6677-
return a.metadata.name;
6678-
});
6686+
var b = _.keys(a.by("metadata.name")).sort();
66796687
angular.extend(d, {
66806688
projects:b,
6689+
selectProject:function(a) {
6690+
d.newBinding.name = "", w({
6691+
namespace:a
6692+
});
6693+
},
66816694
refreshProjects:function(a) {
66826695
a && !_.includes(d.projects, a) ? d.projects = [ a ].concat(b) :d.projects = b;
66836696
}
66846697
});
66856698
}), j.get(c.project).then(_.spread(function(c, e) {
6686-
n = e, w(), angular.extend(d, {
6699+
n = e, x(), w(n), angular.extend(d, {
66876700
project:c,
6688-
subjectKinds:A,
6701+
subjectKinds:B,
66896702
canUpdateRolebindings:r("rolebindings", "update", o),
66906703
confirmRemove:function(c, e, g) {
6691-
var i = null, j = B(c, e, g, d.user.metadata.name);
6704+
var i = null, j = C(c, e, g, d.user.metadata.name);
66926705
_.isEqual(c, d.user.metadata.name) && k.isLastRole(d.user.metadata.name, d.roleBindings) && (i = !0), f.open({
66936706
animation:!0,
66946707
templateUrl:"views/modals/confirm.html",
@@ -6701,7 +6714,7 @@ return j;
67016714
}).result.then(function() {
67026715
l.removeSubject(c, g, d.roleBindings, n).then(function(a) {
67036716
i ? b.url("./") :(h.getProjectRules(o, !0).then(function() {
6704-
w(a[0]);
6717+
x(a[0]);
67056718
var b = r("rolebindings", "update", o);
67066719
angular.extend(d, {
67076720
canUpdateRolebindings:b,
@@ -6738,7 +6751,7 @@ name:a
67386751
}) ? u("rolebindingUpdate", "info", t.update.subject.exists({
67396752
roleName:c.metadata.name,
67406753
subjectName:a
6741-
})) :g ? y(g, f, e) :x(c, f, e);
6754+
})) :g ? z(g, f, e) :y(c, f, e);
67426755
}
67436756
}), m.listAllRoles(n, {
67446757
errorNotification:!1
@@ -6751,7 +6764,7 @@ name:a
67516764
}
67526765
});
67536766
};
6754-
w(), angular.extend(d, {
6767+
x(), angular.extend(d, {
67556768
toggle:{
67566769
roles:!1
67576770
},
@@ -26781,35 +26794,38 @@ var _scriptsTemplatesJs = []byte(`angular.module('openshiftConsoleTemplates', []
2678126794
"</div>\n" +
2678226795
"<ng-form class=\"new-binding\" novalidate name=\"forms.newBindingForm\" ng-if=\"newBinding\">\n" +
2678326796
"<div ng-if=\"mode.edit\" class=\"item-row form-new-role\" row mobile=\"column\">\n" +
26784-
"<div class=\"col-name\" column>\n" +
26797+
"<div class=\"col-name pad-bottom-none\" row mobile=\"column\" tablet=\"column\">\n" +
2678526798
"<label ng-attr-for=\"newBindingName\" class=\"sr-only\">\n" +
2678626799
"Name\n" +
2678726800
"</label>\n" +
26788-
"<input type=\"text\" class=\"form-control input-name\" placeholder=\"Name\" ng-model=\"newBinding.name\" autocorrect=\"off\" autocapitalize=\"off\" spellcheck=\"false\">\n" +
26789-
"<div ng-if=\"newBinding.kind === 'ServiceAccount'\" class=\"service-account-namespace hidden-sm hidden-md hidden-lg\" aria-hidden=\"true\">\n" +
26790-
"<ui-select ng-model=\"newBinding.namespace\" theme=\"bootstrap\" search-enabled=\"true\" title=\"Select a project\" class=\"select-role\">\n" +
26801+
"\n" +
26802+
"<input ng-if=\"newBinding.kind !== 'ServiceAccount'\" type=\"text\" class=\"form-control input-name\" placeholder=\"Name\" ng-model=\"newBinding.name\" autocorrect=\"off\" autocapitalize=\"off\" spellcheck=\"false\">\n" +
26803+
"\n" +
26804+
"<div ng-if=\"newBinding.kind === 'ServiceAccount'\" class=\"service-account-namespace\" aria-hidden=\"true\">\n" +
26805+
"<ui-select ng-model=\"newBinding.namespace\" on-select=\"selectProject($item, $model)\" theme=\"bootstrap\" search-enabled=\"true\" title=\"Select a project\" class=\"select-role pad-bottom-sm\">\n" +
2679126806
"<ui-select-match placeholder=\"Select a project\">\n" +
26792-
"<span ng-bind=\"newBinding.namespace\"></span>\n" +
26807+
"<span>{{newBinding.namespace}}</span>\n" +
2679326808
"</ui-select-match>\n" +
2679426809
"<ui-select-choices repeat=\"projectName in projects | filter: $select.search\" refresh=\"refreshProjects($select.search)\" refresh-delay=\"200\">\n" +
26795-
"<div>{{projectName}}</div>\n" +
26810+
"<div ng-bind-html=\"projectName | highlight : $select.search\"></div>\n" +
2679626811
"</ui-select-choices>\n" +
2679726812
"</ui-select>\n" +
2679826813
"</div>\n" +
26799-
"</div>\n" +
26800-
"<div class=\"action-set\" flex row tablet=\"column\" mobile=\"column\">\n" +
26801-
"<div class=\"col-roles\" row tablet=\"column\" flex wrap axis=\"start\">\n" +
26802-
"<div ng-if=\"newBinding.kind === 'ServiceAccount'\" class=\"service-account-namespace hidden-xs\">\n" +
26803-
"<ui-select ng-model=\"newBinding.namespace\" theme=\"bootstrap\" search-enabled=\"true\" title=\"Select a project\" class=\"select-project\">\n" +
26804-
"<ui-select-match placeholder=\"Select a project\">\n" +
26805-
"<span ng-bind=\"newBinding.namespace\"></span>\n" +
26814+
"<span ng-if=\"newBinding.kind === 'ServiceAccount'\" class=\"mar-left-md mar-right-md hidden-xs\">/</span>\n" +
26815+
"\n" +
26816+
"<div ng-if=\"newBinding.kind === 'ServiceAccount'\" class=\"service-account-name\">\n" +
26817+
"<ui-select ng-model=\"newBinding.name\" theme=\"bootstrap\" search-enabled=\"true\" title=\"Select a service account\" class=\"select-role\">\n" +
26818+
"<ui-select-match placeholder=\"Service account\">\n" +
26819+
"<span>{{newBinding.name}}</span>\n" +
2680626820
"</ui-select-match>\n" +
26807-
"<ui-select-choices repeat=\"projectName in projects | filter: $select.search\" refresh=\"refreshProjects($select.search)\" refresh-delay=\"200\">\n" +
26808-
"<div>{{projectName}}</div>\n" +
26821+
"<ui-select-choices repeat=\"saName in serviceAccounts | filter: $select.search\" refresh=\"refreshServiceAccounts($select.search)\" refresh-delay=\"200\">\n" +
26822+
"<div ng-bind-html=\"saName | highlight : $select.search\"></div>\n" +
2680926823
"</ui-select-choices>\n" +
2681026824
"</ui-select>\n" +
2681126825
"</div>\n" +
2681226826
"</div>\n" +
26827+
"<div class=\"action-set\" flex row tablet=\"column\" mobile=\"column\">\n" +
26828+
"<div class=\"col-roles\" flex row tablet=\"column\">&nbsp;</div>\n" +
2681326829
"<div class=\"col-add-role\">\n" +
2681426830
"<div ng-show=\"mode.edit\" row>\n" +
2681526831
"<ui-select ng-if=\"filteredRoles.length\" ng-model=\"newBinding.newRole\" theme=\"bootstrap\" search-enabled=\"true\" title=\"new {{subjectKind.name}} role\" class=\"select-role\" flex>\n" +
@@ -116260,13 +116276,13 @@ a.subtle-link:active,a.subtle-link:focus,a.subtle-link:hover{color:#00659c;borde
116260116276
.membership .content-pane .col-heading h3,.membership .content-pane .item-row h3{margin:0}
116261116277
.membership .content-pane .item-row{padding:5px 10px 5px 5px;margin-bottom:20px}
116262116278
.membership .content-pane .col-heading{margin-bottom:20px}
116263-
.membership .content-pane .col-name{word-break:break-all;word-break:break-word;overflow-wrap:break-word;min-width:225px;max-width:30%;padding:0 5px 10px 0}
116279+
.membership .content-pane .col-name{word-break:break-all;word-break:break-word;overflow-wrap:break-word;width:100%;padding:0 0px 10px 0}
116264116280
.membership .content-pane .col-name.half-width{min-width:50%}
116265116281
.membership .content-pane .col-name input{max-width:150px}
116266116282
.membership .content-pane .col-name .new-project{margin-top:2px}
116267116283
.membership .content-pane .content-serviceaccount .form-new-role .col-roles{display:block}
116268116284
.membership .content-pane .input-name{width:150px;margin-bottom:5px}
116269-
.membership .content-pane .select-project,.membership .content-pane .select-role{width:150px}
116285+
.membership .content-pane .select-project{width:150px}
116270116286
.membership .content-pane .select-role small{color:#999}
116271116287
.membership .content-pane .select-role .active small{color:#c0e0f0}
116272116288
.membership .content-pane .col-add-role,.membership .content-pane .col-heading,.membership .content-pane .col-name,.membership .content-pane .col-roles,.membership .content-pane .item-row,.membership .content-pane [flex-collapse-fix],.membership .content-pane [flex]{flex-shrink:0;flex-basis:auto}
@@ -116275,8 +116291,9 @@ a.subtle-link:active,a.subtle-link:focus,a.subtle-link:hover{color:#00659c;borde
116275116291
.membership .content-pane .col-heading,.membership .content-pane .item-row{border-bottom:none;margin-bottom:none}
116276116292
.membership .content-pane .item-row.highlight-hover:hover{background-color:#fafafa}
116277116293
.membership .content-pane .col-heading .col-add-role a{display:block;padding-left:10px}
116278-
.membership .content-pane .col-name{width:30%}
116294+
.membership .content-pane .col-name{min-width:225px;max-width:30%;padding:0 5px 10px 0}
116279116295
.membership .content-pane .col-name input{max-width:175px}
116296+
.membership .content-pane .select-role{width:150px}
116280116297
}
116281116298
.action-chip{margin:0 5px 2px 0;font-size:12px;display:flex;flex-direction:row}
116282116299
.action-chip .item{padding:.2em .6em .3em}

0 commit comments

Comments
 (0)