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

add-seaTable-integration (#5761)

* add-seaTable-integration

* update-request

* update-path

* update-json

* update-UI

* update-json

* update-text

* update-text

* remove-space

* update-UI

* add-hover

* add variable control

---------

Co-authored-by: 杨顺强 <978987373@qq.com>
This commit is contained in:
yinjianfei-user
2023-12-12 15:08:37 +08:00
committed by GitHub
parent a514228406
commit 21bac022cc
12 changed files with 856 additions and 2 deletions

View File

@@ -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, enableRepoAutoDel } from '../../utils/constants';
import { gettext, isPro, folderPermEnabled, enableRepoSnapshotLabel, enableResetEncryptedRepoPassword, isEmailConfigured, enableRepoAutoDel, enableSeaTableIntegration } from '../../utils/constants';
import { Utils } from '../../utils/utils';
const propTypes = {
@@ -123,6 +123,10 @@ class MylibRepoMenu extends React.Component {
if (enableRepoAutoDel) {
operations.push('Old Files Auto Delete');
}
console.log(enableSeaTableIntegration);
if (enableSeaTableIntegration) {
operations.push('SeaTable integration');
}
return operations;
};
@@ -180,6 +184,9 @@ class MylibRepoMenu extends React.Component {
case 'Advanced':
translateResult = gettext('Advanced');
break;
case 'SeaTable integration':
translateResult = gettext('SeaTable integration');
break;
default:
break;
}