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:
@@ -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>
|
||||
);
|
||||
}
|
||||
|
Reference in New Issue
Block a user