1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-24 04:48:03 +00:00

solve compatibility problems

This commit is contained in:
shanshuirenjia
2019-06-04 16:18:32 +08:00
parent 9ba1278eca
commit a0d5ad5e93
6 changed files with 27 additions and 7 deletions

View File

@@ -2,6 +2,7 @@ import React from 'react';
import PropTypes from 'prop-types';
import { Dropdown, DropdownMenu, DropdownToggle, DropdownItem } from 'reactstrap';
import { gettext, folderPermEnabled, enableRepoSnapshotLabel, enableResetEncryptedRepoPassword, isEmailConfigured } from '../../utils/constants';
import { Utils } from '../../utils/utils';
const propTypes = {
isPC: PropTypes.bool,
@@ -21,7 +22,7 @@ class MylibRepoMenu extends React.Component {
}
onMenuItemClick = (e) => {
let operation = e.target.dataset.toggle;
let operation = Utils.getEventData(e, 'toggle');
this.props.onMenuItemClick(operation);
}