aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_sharing
diff options
context:
space:
mode:
authorskjnldsv <skjnldsv@protonmail.com>2025-05-07 10:17:33 +0200
committerskjnldsv <skjnldsv@protonmail.com>2025-05-07 10:17:33 +0200
commitaf0b7946e0e0b4f4ca41bde7cac00c83de5c961b (patch)
tree8b095248f5f721f0f445f55e9b141ae84cdd8e8d /apps/files_sharing
parent1527c5e1516357e67ff186bee852ba4f7846ef08 (diff)
downloadnextcloud-server-fix/loading-account-menu.tar.gz
nextcloud-server-fix/loading-account-menu.zip
fixup! fixup! feat(files_sharing): show Account menu on public pagesfix/loading-account-menu
Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
Diffstat (limited to 'apps/files_sharing')
-rw-r--r--apps/files_sharing/src/public-file-request.ts9
1 files changed, 2 insertions, 7 deletions
diff --git a/apps/files_sharing/src/public-file-request.ts b/apps/files_sharing/src/public-file-request.ts
index 5293a03d08b..1f5969cf72d 100644
--- a/apps/files_sharing/src/public-file-request.ts
+++ b/apps/files_sharing/src/public-file-request.ts
@@ -3,12 +3,11 @@
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
-import { defineAsyncComponent } from 'vue'
import { getBuilder } from '@nextcloud/browser-storage'
import { getGuestNickname } from '@nextcloud/auth'
import { getUploader } from '@nextcloud/upload'
import { loadState } from '@nextcloud/initial-state'
-import { spawnDialog } from '@nextcloud/dialogs'
+import { showGuestUserPrompt } from '@nextcloud/dialogs'
import { t } from '@nextcloud/l10n'
import logger from './services/logger'
@@ -67,11 +66,7 @@ window.addEventListener('DOMContentLoaded', () => {
// If we don't have a nickname or the public auth prompt hasn't been shown yet, show it
// We still show the prompt if the user has a nickname to double check
if (!nickname || !dialogShown) {
- spawnDialog(
- defineAsyncComponent(() => import('./views/PublicAuthPrompt.vue')),
- options,
- onSetNickname as (...rest: unknown[]) => void,
- )
+ showGuestUserPrompt(options)
} else {
logger.debug('Public auth prompt already shown.', { nickname })
registerFileRequestHeader(nickname)