From 40df86f71023f8607795bc4051eda376c8ad62a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Memo=20Garc=C3=ADa?= Date: Tue, 1 Mar 2016 11:15:47 +0000 Subject: [PATCH] Improve success messages when it takes time to display the action Closes bug: 287309 Change-Id: Ie86d5e214eeb2ea3041c3b89e52f1394bebe14dc --- disaster_recovery/actions/workflows/action.py | 2 +- disaster_recovery/jobs/workflows/create.py | 2 +- disaster_recovery/jobs/workflows/update_job.py | 4 ++-- disaster_recovery/sessions/workflows/attach.py | 2 +- disaster_recovery/sessions/workflows/create.py | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/disaster_recovery/actions/workflows/action.py b/disaster_recovery/actions/workflows/action.py index 6422de3..1f6252b 100644 --- a/disaster_recovery/actions/workflows/action.py +++ b/disaster_recovery/actions/workflows/action.py @@ -520,7 +520,7 @@ class ActionWorkflow(workflows.Workflow): slug = "action" name = _("Action Configuration") finalize_button_name = _("Save") - success_message = _('Action file saved correctly.') + success_message = _('Action queued correctly. It will appear soon') failure_message = _('Unable to save action file.') success_url = "horizon:disaster_recovery:actions:index" diff --git a/disaster_recovery/jobs/workflows/create.py b/disaster_recovery/jobs/workflows/create.py index 74c9e1b..a618261 100644 --- a/disaster_recovery/jobs/workflows/create.py +++ b/disaster_recovery/jobs/workflows/create.py @@ -187,7 +187,7 @@ class ConfigureJob(workflows.Workflow): slug = "job" name = _("Job Configuration") finalize_button_name = _("Save") - success_message = _('Job created correctly.') + success_message = _('Job queued correctly. It will appear soon') failure_message = _('Unable to created job.') success_url = "horizon:disaster_recovery:jobs:index" default_steps = (InfoConfiguration, diff --git a/disaster_recovery/jobs/workflows/update_job.py b/disaster_recovery/jobs/workflows/update_job.py index 28d86b5..67571a5 100644 --- a/disaster_recovery/jobs/workflows/update_job.py +++ b/disaster_recovery/jobs/workflows/update_job.py @@ -107,8 +107,8 @@ class UpdateJob(workflows.Workflow): slug = "update_job" name = _("Update Job") finalize_button_name = _("Save") - success_message = _('Job created correctly.') - failure_message = _('Unable to created job.') + success_message = _('Job updated correctly.') + failure_message = _('Unable to update job.') success_url = "horizon:disaster_recovery:jobs:index" default_steps = (InfoConfiguration,) diff --git a/disaster_recovery/sessions/workflows/attach.py b/disaster_recovery/sessions/workflows/attach.py index c234031..db3b6b0 100644 --- a/disaster_recovery/sessions/workflows/attach.py +++ b/disaster_recovery/sessions/workflows/attach.py @@ -63,7 +63,7 @@ class AttachJobToSession(workflows.Workflow): slug = "attach_job" name = _("Attach To Session") finalize_button_name = _("Attach") - success_message = _('Job saved successfully.') + success_message = _('Job attached successfully.') failure_message = _('Unable to attach to session.') success_url = "horizon:disaster_recovery:jobs:index" default_steps = (SessionConfiguration,) diff --git a/disaster_recovery/sessions/workflows/create.py b/disaster_recovery/sessions/workflows/create.py index 29724f5..3560fab 100644 --- a/disaster_recovery/sessions/workflows/create.py +++ b/disaster_recovery/sessions/workflows/create.py @@ -97,7 +97,7 @@ class CreateSession(workflows.Workflow): slug = "create_session" name = _("Create Session") finalize_button_name = _("Save") - success_message = _('Session created successfully.') + success_message = _('Session queued correctly. It will appear soon') failure_message = _('Unable to create session.') success_url = "horizon:disaster_recovery:sessions:index" default_steps = (SessionConfiguration,)