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 #3857. More informative error message for job templates #4295

Merged
merged 1 commit into from
Jul 9, 2019
Merged

Fix #3857. More informative error message for job templates #4295

merged 1 commit into from
Jul 9, 2019

Conversation

JakobP
Copy link
Contributor

@JakobP JakobP commented Jul 9, 2019

SUMMARY

When the user try to create a job template and there are no projects available a misleading error message is is displayed in a modal "You do not have permission to add a job template.".

This change the error message to "You do not have permission to add a job template, or there are no projects available."

Related #3857

ISSUE TYPE
  • Bugfix Pull Request
COMPONENT NAME
  • UI
AWX VERSION

I'm unable to run a make on my current machine due to work. Hoping that someone else can do it, since this is just a change of an error message.

ADDITIONAL INFORMATION

…n not post to /#/templates/add_job_template

The cause can be both missing permissions and no projects being available.

Related #3857

Signed-off-by: Jakob Pedersen <CONS_JPE@jysk.com>
@softwarefactory-project-zuul
Copy link
Contributor

Build succeeded.

@ryanpetrello
Copy link
Contributor

Thanks for contributing this, @JakobP!

@softwarefactory-project-zuul
Copy link
Contributor

Build succeeded (gate pipeline).

@softwarefactory-project-zuul softwarefactory-project-zuul bot merged commit bda4233 into ansible:devel Jul 9, 2019
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.

3 participants