mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-24 04:48:03 +00:00
Multi office suite (#7127)
* initiate * update * test * Update file.py * update * update * update * optimize fronted * optimize * update * update * update * Update test_utils.py * update * remove-useless-code * Update repo_office_suite.py * optimize ui and sql * optimize * update * add is pro version for api * Update settings.py * update * Update models.py * add-repo-owner-validation --------- Co-authored-by: 孙永强 <11704063+s-yongqiang@user.noreply.gitee.com>
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import React from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import { Dropdown, DropdownMenu, DropdownToggle, DropdownItem } from 'reactstrap';
|
||||
import { gettext, isPro, folderPermEnabled, enableRepoSnapshotLabel, enableResetEncryptedRepoPassword, isEmailConfigured } from '../../utils/constants';
|
||||
import { gettext, isPro, folderPermEnabled, enableRepoSnapshotLabel, enableResetEncryptedRepoPassword, isEmailConfigured, enableMultipleOfficeSuite } from '../../utils/constants';
|
||||
import { Utils } from '../../utils/utils';
|
||||
|
||||
const propTypes = {
|
||||
@@ -120,6 +120,9 @@ class MylibRepoMenu extends React.Component {
|
||||
if (this.props.isPC && enableRepoSnapshotLabel) {
|
||||
operations.push('Label Current State');
|
||||
}
|
||||
if (enableMultipleOfficeSuite && isPro) {
|
||||
operations.push('Office Suite');
|
||||
}
|
||||
return operations;
|
||||
};
|
||||
|
||||
@@ -174,6 +177,9 @@ class MylibRepoMenu extends React.Component {
|
||||
case 'SeaTable integration':
|
||||
translateResult = gettext('SeaTable integration');
|
||||
break;
|
||||
case 'Office Suite':
|
||||
translateResult = gettext('Office Suite');
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
Reference in New Issue
Block a user