1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-18 16:36:15 +00:00

[system admin] enable 'invitations' & 'unlink device' only in pro version (#4563)

This commit is contained in:
llj
2020-05-14 16:16:50 +08:00
committed by GitHub
parent 00a2e4320e
commit a707d4adb7
2 changed files with 4 additions and 2 deletions

View File

@@ -1,6 +1,6 @@
import React, { Component, Fragment } from 'react';
import { seafileAPI } from '../../../utils/seafile-api';
import { gettext } from '../../../utils/constants';
import { gettext, isPro } from '../../../utils/constants';
import toaster from '../../../components/toast';
import { Utils } from '../../../utils/utils';
import EmptyTip from '../../../components/empty-tip';
@@ -133,7 +133,9 @@ class Item extends Component {
<span title={moment(item.last_accessed).format('llll')}>{moment(item.last_accessed).fromNow()}</span>
</td>
<td>
{isPro &&
<a href="#" className={`sf2-icon-delete action-icon ${isOpIconShown ? '' : 'invisible'}`} title={gettext('Unlink')} onClick={this.handleUnlink}></a>
}
</td>
</tr>
{isUnlinkDeviceDialogOpen &&

View File

@@ -211,7 +211,7 @@ class SidePanel extends React.Component {
</Link>
</li>
}
{enableGuestInvitation && otherPermission &&
{isPro && enableGuestInvitation && otherPermission &&
<li className="nav-item">
<Link
className={`nav-link ellipsis ${this.getActiveClass('invitations')}`}