-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #351 from sei-aderr/feature/report-ui-inputs
Fully implementing the form for the reports in the GUI
- Loading branch information
Showing
8 changed files
with
614 additions
and
248 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
export function successfulSubmission( | ||
artifactType: string, | ||
artifactName: string, | ||
) { | ||
alert(`Your ${artifactType}, ${artifactName}, has been saved successfully.`); | ||
} | ||
|
||
export function cancelFormSubmission(redirect: string) { | ||
if ( | ||
confirm( | ||
"Are you sure you want to leave this page? All changes will be lost.", | ||
) | ||
) { | ||
location.href = redirect; | ||
} | ||
} | ||
|
||
export function requestErrorAlert() { | ||
alert( | ||
"Error encountered while communicating with API. Ensure store is running and allowed-origins is configured correctly.", | ||
); | ||
} | ||
|
||
export function responseErrorAlert() { | ||
alert( | ||
"Error encountered in response from API. Check browser and store console for more information.", | ||
); | ||
} | ||
|
||
export function conflictErrorAlert() { | ||
alert("Name specified for artifact is already in use."); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.