mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-24 04:48:03 +00:00
Watch unwatch (#7927)
* ['library view' page] added 'Watch/Unwatch File Changes' to the 'Others' section * ['Library view', 'My Libraries'] removed the 'Watch/Unwatch File Changes' in the 'Others - More' menu of 'Library view' page; for the library items in 'My Libraries', removed the 'Watch/Unwatch File Changes' operation options from the menus, and removed the 'being watched' icon and the tooltip. * ['Shared with me' page] for desktop & mobile: removed the 'Watch/Unwatch File Changes' options from the operation menus, and removed the 'being watched' icon and the tooltip. * ['Group', 'Department' library list] for desktop & mobile: removed the 'Watch/Unwatch File Changes' options from the operation menus, and removed the 'being watched' icon and the tooltip.
This commit is contained in:
@@ -105,11 +105,6 @@ class MylibRepoMenu extends React.Component {
|
||||
operations.push('Reset Password');
|
||||
}
|
||||
|
||||
if (isPro) {
|
||||
const monitorOp = repo.monitored ? 'Unwatch File Changes' : 'Watch File Changes';
|
||||
operations.push(monitorOp);
|
||||
}
|
||||
|
||||
operations.push('Divider', 'Advanced');
|
||||
// Remove adjacent excess 'Divider'
|
||||
for (let i = 0; i < operations.length; i++) {
|
||||
@@ -160,12 +155,6 @@ class MylibRepoMenu extends React.Component {
|
||||
case 'Reset Password':
|
||||
translateResult = gettext('Reset Password');
|
||||
break;
|
||||
case 'Watch File Changes':
|
||||
translateResult = gettext('Watch File Changes');
|
||||
break;
|
||||
case 'Unwatch File Changes':
|
||||
translateResult = gettext('Unwatch File Changes');
|
||||
break;
|
||||
case 'Folder Permission':
|
||||
translateResult = gettext('Folder Permission');
|
||||
break;
|
||||
|
Reference in New Issue
Block a user