From 67700e13ba2560a6cfa41261d8e93a22c6922711 Mon Sep 17 00:00:00 2001 From: richard-dds Date: Tue, 21 Aug 2018 15:11:05 -0400 Subject: [PATCH] Show alert when workspace is new --- atst/routes/requests/financial_verification.py | 8 +------- templates/workspace_projects.html | 3 +-- 2 files changed, 2 insertions(+), 9 deletions(-) diff --git a/atst/routes/requests/financial_verification.py b/atst/routes/requests/financial_verification.py index 2216238f..63a3c449 100644 --- a/atst/routes/requests/financial_verification.py +++ b/atst/routes/requests/financial_verification.py @@ -41,13 +41,7 @@ def update_financial_verification(request_id): ) new_workspace = Requests.update_financial_verification(request_id, post_data) if valid: - return redirect( - url_for( - "workspaces.workspace_projects", - workspace_id=new_workspace.id, - modal=True, - ) - ) + return redirect(url_for("workspaces.workspace_projects", workspace_id=new_workspace.id, newWorkspace=True)) else: form.reset() return render_template( diff --git a/templates/workspace_projects.html b/templates/workspace_projects.html index 18f24396..cd2a1308 100644 --- a/templates/workspace_projects.html +++ b/templates/workspace_projects.html @@ -5,12 +5,11 @@ {% block workspace_content %} -{% if True %} +{% if request.args.get("newWorkspace") %} {{ Alert('Workspace created!', message="\

You are now ready to create projects and environments within the JEDI Cloud.

", - actions='', level='success' ) }} {% endif %}