diff --git a/client/src/app/main/dashboard/dashboard-create-ticket/dashboard-create-ticket-page.js b/client/src/app/main/dashboard/dashboard-create-ticket/dashboard-create-ticket-page.js index b62d7176..ca7ac287 100644 --- a/client/src/app/main/dashboard/dashboard-create-ticket/dashboard-create-ticket-page.js +++ b/client/src/app/main/dashboard/dashboard-create-ticket/dashboard-create-ticket-page.js @@ -43,7 +43,7 @@ class DashboardCreateTicketPage extends React.Component { } onCreateTicketSuccess(message) { - history.push(`${(this.props.location.pathname !== '/create-ticket') ? "/dashboard" : "/create-ticket"}?message=${message}`); + history.push(`${(this.props.location.pathname !== '/create-ticket') ? "/dashboard" : "/"}?message=${message}`); } getClass() { diff --git a/client/src/app/main/dashboard/dashboard-create-ticket/dashboard-create-ticket-page.scss b/client/src/app/main/dashboard/dashboard-create-ticket/dashboard-create-ticket-page.scss index 3686272a..fca910b1 100644 --- a/client/src/app/main/dashboard/dashboard-create-ticket/dashboard-create-ticket-page.scss +++ b/client/src/app/main/dashboard/dashboard-create-ticket/dashboard-create-ticket-page.scss @@ -17,4 +17,8 @@ &__create-ticket-form__hidden { display: none; } + + &__message { + margin-bottom: 30px; + } } diff --git a/client/src/app/main/main-home/main-home-page-portal.js b/client/src/app/main/main-home/main-home-page-portal.js index bc03f018..da05e6cb 100644 --- a/client/src/app/main/main-home/main-home-page-portal.js +++ b/client/src/app/main/main-home/main-home-page-portal.js @@ -7,6 +7,8 @@ import Widget from 'core-components/widget'; import Card from 'core-components/card'; import i18n from 'lib-app/i18n'; import Header from 'core-components/header'; +import queryString from 'query-string'; +import Message from 'core-components/message'; class MainHomePagePortal extends React.Component { static propTypes = { @@ -14,23 +16,35 @@ class MainHomePagePortal extends React.Component { }; render() { + + const currentSearchParams = queryString.parse(window.location.search) || {}; + return ( - -
-
-
-
-
- +
+ { + currentSearchParams["message"] ? + + {i18n('TICKET_NUMBER_SENT')} + : + null + } + +
+
-
- +
+
+ +
+
+ +
+
+ +
-
- -
-
-
+ +
); }