Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
scratch-www
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
scratch-www
Commits
a6b7ef3c
Commit
a6b7ef3c
authored
Aug 26, 2021
by
Eric Rosenbaum
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
reload managers before closing modal
parent
65eddfe4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
src/views/studio/lib/studio-member-actions.js
src/views/studio/lib/studio-member-actions.js
+3
-2
src/views/studio/modals/transfer-host-confirmation.jsx
src/views/studio/modals/transfer-host-confirmation.jsx
+1
-1
No files found.
src/views/studio/lib/studio-member-actions.js
View file @
a6b7ef3c
...
...
@@ -45,7 +45,7 @@ const normalizeError = (err, body, res) => {
return
null
;
};
const
loadManagers
=
(
reloadAll
=
false
)
=>
((
dispatch
,
getState
)
=>
{
const
loadManagers
=
(
reloadAll
=
false
)
=>
((
dispatch
,
getState
)
=>
new
Promise
(
resolve
=>
{
const
state
=
getState
();
const
studioId
=
selectStudioId
(
state
);
const
managerCount
=
reloadAll
?
0
:
managers
.
selector
(
state
).
items
.
length
;
...
...
@@ -58,8 +58,9 @@ const loadManagers = (reloadAll = false) => ((dispatch, getState) => {
if
(
error
)
return
dispatch
(
managers
.
actions
.
error
(
error
));
if
(
reloadAll
)
dispatch
(
managers
.
actions
.
clear
());
dispatch
(
managers
.
actions
.
append
(
body
,
body
.
length
===
PER_PAGE_LIMIT
));
return
resolve
();
});
});
})
)
;
const
loadCurators
=
()
=>
((
dispatch
,
getState
)
=>
{
const
state
=
getState
();
...
...
src/views/studio/modals/transfer-host-confirmation.jsx
View file @
a6b7ef3c
...
...
@@ -47,9 +47,9 @@ const TransferHostConfirmation = ({
const
handleSubmit
=
()
=>
{
setSubmitting
(
true
);
handleTransferHost
(
passwordInputValue
,
newHostUsername
,
selectedId
)
.
then
(()
=>
handleLoadManagers
(
true
))
// reload the list of managers, to get them in the correct order
.
then
(()
=>
{
handleClose
();
handleLoadManagers
(
true
);
// reload the list of managers, to get them in the correct order
successAlert
({
id
:
'
studio.alertTransfer
'
,
values
:
{
name
:
newHostUsername
}
...
...
Write
Preview
Markdown
is supported
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