Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Use unified modal style for toggle job modal #1090

Merged
merged 1 commit into from
Jul 15, 2024

Conversation

minghay
Copy link
Contributor

@minghay minghay commented Jul 15, 2024

Context

#1088 started unifying the new UI modal look and feel. With those changes we can update the newly created modals to use that style.

Objective

Updates the modal to fit into the new look and feel of the new UI. Additionally, fixes a bug with the submit action not triggering the correct API action.

References

screwdriver-cd/screwdriver#3200

License

I confirm that this contribution is made under the terms of the license found in the root directory of this repository's source tree and that I have the authority necessary to make this contribution on behalf of its copyright owner.

@@ -18,7 +18,7 @@ export default class PipelineModalToggleJobComponent extends Component {
async updateJob() {
const payload = {
state:
this.args.toggleAction.toLowerCase() === 'disabled'
this.args.toggleAction.toLowerCase() === 'disable'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should this still be disabled?

Suggested change
this.args.toggleAction.toLowerCase() === 'disable'
this.args.toggleAction.toLowerCase() === 'disabled'

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's actually supposed to be disable...it was a bit of a typo/bug when I had initially put it in. The main idea is that the component takes in a verb and the UI changes it to the correct tense for display.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

okay I see

@tkyi tkyi merged commit 45b9a4f into master Jul 15, 2024
2 checks passed
@tkyi tkyi deleted the update-toggle-job-modal branch July 15, 2024 21:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants