Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
小 白蛋
Headlamp
Commits
e10aec28
Unverified
Commit
e10aec28
authored
2 years ago
by
Joaquim Rocha
Committed by
GitHub
2 years ago
Browse files
Options
Download
Plain Diff
Merge pull request #585 from kinvolk/fix-role-binding-views
Fix role binding views
parents
682fed85
0be6089b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
frontend/src/components/role/BindingDetails.tsx
+1
-0
frontend/src/components/role/BindingDetails.tsx
frontend/src/components/role/BindingList.tsx
+1
-6
frontend/src/components/role/BindingList.tsx
with
2 additions
and
6 deletions
+2
-6
frontend/src/components/role/BindingDetails.tsx
+
1
-
0
View file @
e10aec28
...
...
@@ -17,6 +17,7 @@ export default function RoleBindingDetails() {
return
(
<
DetailsGrid
resourceType
=
{
!!
namespace
?
RoleBinding
:
ClusterRoleBinding
}
namespace
=
{
namespace
}
name
=
{
name
}
extraInfo
=
{
item
=>
item
&&
[
...
...
This diff is collapsed.
Click to expand it.
frontend/src/components/role/BindingList.tsx
+
1
-
6
View file @
e10aec28
...
...
@@ -21,12 +21,7 @@ export default function RoleBindingList() {
const
filterFunc
=
useFilterFunc
([
'
.kind
'
]);
function
setRoleBindings
(
newBindings
:
RoleBinding
[]
|
null
,
kind
:
string
)
{
const
currentBindings
:
RoleBindingDict
=
bindings
||
{};
const
data
=
{
...
currentBindings
};
data
[
kind
]
=
newBindings
;
setBindings
(
data
);
setBindings
(
currentBindings
=>
({
...
currentBindings
,
[
kind
]:
newBindings
}));
}
function
setupRoleBindings
(
newBindings
:
RoleBinding
[]
|
null
)
{
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help