Show alert when workspace is new

This commit is contained in:
richard-dds 2018-08-21 15:11:05 -04:00
parent 5203690748
commit 67700e13ba
2 changed files with 2 additions and 9 deletions

View File

@ -41,13 +41,7 @@ def update_financial_verification(request_id):
) )
new_workspace = Requests.update_financial_verification(request_id, post_data) new_workspace = Requests.update_financial_verification(request_id, post_data)
if valid: if valid:
return redirect( return redirect(url_for("workspaces.workspace_projects", workspace_id=new_workspace.id, newWorkspace=True))
url_for(
"workspaces.workspace_projects",
workspace_id=new_workspace.id,
modal=True,
)
)
else: else:
form.reset() form.reset()
return render_template( return render_template(

View File

@ -5,12 +5,11 @@
{% block workspace_content %} {% block workspace_content %}
{% if True %} {% if request.args.get("newWorkspace") %}
{{ Alert('Workspace created!', {{ Alert('Workspace created!',
message="\ message="\
<p>You are now ready to create projects and environments within the JEDI Cloud.</p> <p>You are now ready to create projects and environments within the JEDI Cloud.</p>
", ",
actions='',
level='success' level='success'
) }} ) }}
{% endif %} {% endif %}