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

Use the asset tag instead of asset name if no name is given on delete modal #12929

Merged
merged 1 commit into from
Apr 26, 2023

Conversation

snipe
Copy link
Owner

@snipe snipe commented Apr 26, 2023

This fixes a small UI quirk where if the asset's name is not populated - and it doesn't have to be - it will return an awkward looking message.

Data:

Screenshot 2023-04-26 at 2 42 09 PM

Before:

Screenshot 2023-04-26 at 2 42 14 PM

Screenshot 2023-04-26 at 2 42 22 PM

After:

Screenshot 2023-04-26 at 2 42 14 PM

Screenshot 2023-04-26 at 2 42 50 PM

Assets are the only thing in the system where name is optional, and I tested this fix on users, etc and all seems fine.

Signed-off-by: snipe <snipe@snipe.net>
@what-the-diff
Copy link

what-the-diff bot commented Apr 26, 2023

PR Summary

  • Improved delete confirmation box
    Added a check to ensure the name is not empty, and if it is, the asset_tag will be used for the delete confirmation box text.

@snipe snipe merged commit 0c5837e into develop Apr 26, 2023
4 checks passed
@snipe snipe deleted the fixes/use_asset_tag_if_no_asset_name_given branch April 26, 2023 21:49
@snipe snipe changed the title Use the asset tag instead of asset name if no name is given Use the asset tag instead of asset name if no name is given on delete modal Apr 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant