1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-01 23:20:51 +00:00

[side nav] removed the link to SeaTable (#5841)

This commit is contained in:
llj
2023-12-20 10:14:46 +08:00
committed by GitHub
parent 843482bd07
commit 285a3b9c38
4 changed files with 1 additions and 17 deletions

View File

@@ -1,7 +1,7 @@
import React from 'react';
import PropTypes from 'prop-types';
import { Link } from '@gatsbyjs/reach-router';
import { gettext, siteRoot, canAddRepo, canGenerateShareLink, canGenerateUploadLink, canInvitePeople, dtableWebServer, enableOCM, enableOCMViaWebdav } from '../utils/constants';
import { gettext, siteRoot, canAddRepo, canGenerateShareLink, canGenerateUploadLink, canInvitePeople, enableOCM, enableOCMViaWebdav } from '../utils/constants';
import { seafileAPI } from '../utils/seafile-api';
import { Utils } from '../utils/utils';
import toaster from './toast';
@@ -76,11 +76,6 @@ class MainSideNav extends React.Component {
this.props.tabItemClick(param, id);
};
onDTableClick = () => {
let url = dtableWebServer;
window.open(url);
};
getActiveClass = (tab) => {
return this.props.currentTab === tab ? 'active' : '';
};
@@ -290,14 +285,6 @@ class MainSideNav extends React.Component {
{customNavItems && this.renderCustomNavItems()}
</ul>
</div>
{dtableWebServer &&
<div className="side-nav-link" onClick={this.onDTableClick}>
<span className="link-icon icon-left sf3-font sf3-font-dtable-logo" aria-hidden="true"></span>
<span className="link-text">SeaTable</span>
<span className="link-icon icon-right sf3-font sf3-font-arrow"></span>
</div>
}
</div>
);
}