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 #8570: Show modal dialog before deletion. #5053

Merged
merged 1 commit into from
Mar 11, 2015

Conversation

ehelms
Copy link
Member

@ehelms ehelms commented Feb 26, 2015

No description provided.

@@ -25,8 +25,13 @@ <h3 translate>Packages in {{ repository.name }}</h3>
</div>

<div data-block="actions">
<div bst-modal="removeContent()">
<div data-block="modal-header" translate>Remove {{ detailsTable.numSelected }} Packages?</div>
<div data-block="modal-body" translate>Are you sure you want to remove the {{ detailsTable.numSelected }} packages selected?</div>
Copy link
Member

Choose a reason for hiding this comment

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

For these do we need to use the plural feature that translate gives us? Its annoying to use, but it makes it look much better than seeing '1 packages'

@ehelms
Copy link
Member Author

ehelms commented Mar 2, 2015

Updated

@waldenraines
Copy link
Contributor

LGTM

@@ -25,8 +25,13 @@ <h3 translate>Packages in {{ repository.name }}</h3>
</div>

<div data-block="actions">
<div bst-modal="removeContent()">
<div data-block="modal-header" translate-plural>Remove {{ detailsTable.numSelected }} Packages?</div>
<div data-block="modal-body" translate-plural>Are you sure you want to remove the {{ detailsTable.numSelected }} packages selected?</div>
Copy link
Member

Choose a reason for hiding this comment

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

Is this the right way to use translate-plural? All the other examples in the code are quite a bit more verbose and specific.

Copy link
Contributor

Choose a reason for hiding this comment

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

No, it's not.

You need to provide translate-n so it knows whether or not to use the plural and `translate-plural' should have the plural message, see the docs.

@@ -26,8 +26,22 @@ <h3 translate>Docker Images in {{ repository.name }}</h3>
</div>

<div data-block="actions">
<div bst-modal="removeContent()">
<div data-block="modal-header"
translate-plural
Copy link
Member

Choose a reason for hiding this comment

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

This extra directive is unneeded right?

@jlsherrill
Copy link
Member

ack

ehelms added a commit that referenced this pull request Mar 11, 2015
Fixes #8570: Show modal dialog before deletion.
@ehelms ehelms merged commit 2c37f19 into Katello:master Mar 11, 2015
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