mirror of
https://github.com/nextcloud/server.git
synced 2026-04-29 10:03:32 -04:00
Merge pull request #52533 from nextcloud/fix/no-account-filter-public-share
fix: do not show account filter for public shares
This commit is contained in:
commit
183c253f5e
3 changed files with 9 additions and 3 deletions
|
|
@ -10,6 +10,7 @@ import { ShareType } from '@nextcloud/sharing'
|
|||
import Vue from 'vue'
|
||||
|
||||
import FileListFilterAccount from '../components/FileListFilterAccount.vue'
|
||||
import { isPublicShare } from '@nextcloud/sharing/public'
|
||||
|
||||
export interface IAccountData {
|
||||
uid: string
|
||||
|
|
@ -152,5 +153,10 @@ class AccountFilter extends FileListFilter {
|
|||
* Register the file list filter by owner or sharees
|
||||
*/
|
||||
export function registerAccountFilter() {
|
||||
if (isPublicShare()) {
|
||||
// We do not show the filter on public pages - it makes no sense
|
||||
return
|
||||
}
|
||||
|
||||
registerFileListFilter(new AccountFilter())
|
||||
}
|
||||
|
|
|
|||
4
dist/files_sharing-init.js
vendored
4
dist/files_sharing-init.js
vendored
File diff suppressed because one or more lines are too long
2
dist/files_sharing-init.js.map
vendored
2
dist/files_sharing-init.js.map
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue