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

Fixes #34152 - add 'assign roles' button to empty state #494

Merged
merged 1 commit into from
Dec 16, 2021

Conversation

amirfefer
Copy link
Member

This PR adds a button for assigning roles when the roles page is empty

history={history}
hostGlobalId={hostGlobalId}
emptyStateProps={{
title: __('No Ansible roles assigned'),
Copy link
Member

Choose a reason for hiding this comment

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

The screenshot at https://community.theforeman.org/t/foreman-3-0-new-host-detail-page-feedback/25281/20 shows Nothing Found!. Is that a bug or am I missing something?

Copy link
Member

@ezr-ondrej ezr-ondrej Dec 16, 2021

Choose a reason for hiding this comment

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

It is a bug, it was supposed to be a header not a title, I've fixed that, and used action instead of description.

Copy link
Member

Choose a reason for hiding this comment

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

Good catch @ekohl ! :)

@ezr-ondrej ezr-ondrej changed the title Fixes #34152 - add 'assign ansible roles' button to empty roles page Fixes #34152 - add 'assign roles' button to empty state Dec 16, 2021
Copy link
Member

@ezr-ondrej ezr-ondrej left a comment

Choose a reason for hiding this comment

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

Thanks @amirfefer ! 👍

@ezr-ondrej ezr-ondrej merged commit 2a2b337 into theforeman:master Dec 16, 2021
@ezr-ondrej
Copy link
Member

CP 7.0: 21c10a0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants