1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-10 11:21:29 +00:00

add GROUP_IMPORT_MEMBERS_EXTRA_MSG (#4835)

Co-authored-by: lian <lian@seafile.com>
This commit is contained in:
lian
2021-03-17 16:43:10 +08:00
committed by GitHub
parent b27d7cd11c
commit 2405ba671e
5 changed files with 7 additions and 1 deletions

View File

@@ -1,7 +1,7 @@
import React from 'react';
import PropTypes from 'prop-types';
import { Alert, Modal, ModalHeader, ModalBody, ModalFooter, Button } from 'reactstrap';
import { gettext, siteRoot } from '../../utils/constants';
import { gettext, siteRoot, groupImportMembersExtraMsg } from '../../utils/constants';
const propTypes = {
toggleImportMembersDialog: PropTypes.func.isRequired,
@@ -50,6 +50,7 @@ class ImportMembersDialog extends React.Component {
<ModalHeader toggle={this.toggle}>{gettext('Import members from a .xlsx file')}</ModalHeader>
<ModalBody>
<p>{groupImportMembersExtraMsg}</p>
<p><a className="text-secondary small" href={`${siteRoot}api/v2.1/group-members-import-example/`}>{gettext('Download an example file')}</a></p>
<button className="btn btn-outline-primary" onClick={this.openFileInput}>{gettext('Upload file')}</button>
<input className="d-none" type="file" onChange={this.uploadFile} ref={this.fileInputRef} />