Skip to content

Commit

Permalink
Select role in signoff dialog to enable updates (#3052)
Browse files Browse the repository at this point in the history
* work is done

* eslint format
  • Loading branch information
AMUZY committed Jan 8, 2024
1 parent 12e124e commit 40ffba5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ui/src/views/Rules/ListRules/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -940,6 +940,9 @@ function ListRules(props) {
};

const handleSignoffEnableUpdates = async () => {
setRequiredRoles(
Object.keys(filteredRulesWithScheduledChanges[0].required_signoffs)
);
const [product, channel] = productChannelQueries;
const esDetails = emergencyShutoffs.find(
es => es.product === product && es.channel === channel
Expand Down Expand Up @@ -1076,6 +1079,7 @@ function ListRules(props) {
const dialogStates = {
delete: deleteDialogBody,
signoff: signoffDialogBody,
signoffEnableUpdates: signoffDialogBody,
disableUpdates: disableUpdatesBody,
};

Expand Down

0 comments on commit 40ffba5

Please sign in to comment.