Skip to content
Snippets Groups Projects
Commit 82c591b2 authored by Tom Robinson's avatar Tom Robinson Committed by Kyle Doherty
Browse files

Allow typing localized "DELETE" in DeleteDatabaseModal (#8395)

parent 3df01f78
Branches
Tags
No related merge requests found
......@@ -32,6 +32,7 @@ export default class DeleteDatabaseModal extends Component {
render() {
const { database } = this.props;
const { confirmValue } = this.state;
let formError;
if (this.state.error) {
......@@ -46,7 +47,10 @@ export default class DeleteDatabaseModal extends Component {
formError = <span className="text-error px2">{errorMessage}</span>;
}
let confirmed = this.state.confirmValue.toUpperCase() === "DELETE";
// allow English or localized
let confirmed =
confirmValue.toUpperCase() === "DELETE" ||
confirmValue.toUpperCase() === t`DELETE`;
const headsUp = <strong>{t`Just a heads up:`}</strong>;
return (
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment