]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-19453 Add success message after project creation (#8538)
authorAndrey Luiz <andrey.luiz@sonarsource.com>
Tue, 13 Jun 2023 09:34:38 +0000 (11:34 +0200)
committersonartech <sonartech@sonarsource.com>
Wed, 14 Jun 2023 09:51:06 +0000 (09:51 +0000)
server/sonar-web/src/main/js/apps/create/project/CreateProjectPage.tsx
sonar-core/src/main/resources/org/sonar/l10n/core.properties

index ab76cc0a0ef4a394ec6904b9fccc77ec6f23c9ec..fdb66a0c77b577154c8189ba9e749340cbd55553 100644 (file)
@@ -48,6 +48,7 @@ import CreateProjectPageHeader from './components/CreateProjectPageHeader';
 import ManualProjectCreate from './manual/ManualProjectCreate';
 import './style.css';
 import { CreateProjectApiCallback, CreateProjectModes } from './types';
+import { addGlobalSuccessMessage } from '../../../helpers/globalMessages';
 
 export interface CreateProjectPageProps extends WithAvailableFeaturesProps {
   appState: AppState;
@@ -143,6 +144,7 @@ export class CreateProjectPage extends React.PureComponent<CreateProjectPageProp
       const { project } = await this.createProjectFnRef(selectedNcd.type, selectedNcd.value);
       this.props.router.push(getProjectUrl(project.key));
 
+      addGlobalSuccessMessage(translate('onboarding.create_project.success'));
       this.setState({ submitting: false });
     }
   };
index 80957df45f41f1e40d2f591412b2b87419bdd911..60b70f46889eac44f581d7882f24a5fec36f9ac6 100644 (file)
@@ -3920,6 +3920,8 @@ onboarding.create_project.new_code_definition.description2=Learn more: {link}
 onboarding.create_project.new_code_definition.description2.link=Defining New Code
 onboarding.create_project.new_code_definition.create_project=Create project
 
+onboarding.create_project.success=Congratulations! Your project has been created.
+
 onboarding.token.header=Provide a token
 onboarding.token.text=The token is used to identify you when an analysis is performed. If it has been compromised, you can revoke it at any point in time in your {link}.
 onboarding.token.text.PROJECT_ANALYSIS_TOKEN=The project token is used to identify you when an analysis is performed. If it has been compromised, you can revoke it at any point in time in your {link}.