mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-08 02:10:24 +00:00
repair translate bug (#2892)
* repair translate bug * escape repo-name * repair translate bug * repair shared-repo-list-item translate bug
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import React, { Component } from 'react';
|
||||
import { Modal, ModalHeader, ModalBody, ModalFooter, Button } from 'reactstrap';
|
||||
import { gettext } from '../../utils/constants';
|
||||
import { Utils } from '../../utils/utils';
|
||||
|
||||
class DeleteRepoDialog extends Component {
|
||||
|
||||
@@ -20,7 +21,7 @@ class DeleteRepoDialog extends Component {
|
||||
render() {
|
||||
|
||||
const data = this.props.data;
|
||||
const repoName = data ? '<span class="sf-font">' + data.repoName + '</span>' : null;
|
||||
const repoName = data ? '<span class="sf-font">' + Utils.HTMLescape(data.repoName) + '</span>' : null;
|
||||
let message = gettext("Are you sure you want to delete %s ?");
|
||||
message = message.replace('%s', repoName);
|
||||
const popup = (
|
||||
|
Reference in New Issue
Block a user