When a user accepts an invite, show them the tour

It’s jarring to be sent right into the dashboard.

We think the tour makes things less jarring.
This commit is contained in:
Chris Hill-Scott
2016-04-05 16:17:53 +01:00
parent 8351d98289
commit 686493ed8f
2 changed files with 7 additions and 11 deletions

View File

@@ -2,6 +2,8 @@ from datetime import date
from flask import (
render_template,
redirect,
url_for,
session,
flash,
jsonify
@@ -30,9 +32,7 @@ def service_dashboard(service_id):
if session.get('invited_user'):
session.pop('invited_user', None)
message = 'You have successfully accepted your invitation and been added to {}'.format(
current_service['name'])
flash(message, 'default_with_tick')
return redirect(url_for("main.tour", service_id=service_id, page=1))
statistics = statistics_api_client.get_statistics_for_service(service_id)['data']
template_statistics = template_statistics_client.get_template_statistics_for_service(service_id)