diff options
author | Grigorii K. Shartsev <me@shgk.me> | 2024-10-17 15:17:43 +0200 |
---|---|---|
committer | Grigorii K. Shartsev <me@shgk.me> | 2024-10-25 13:01:43 +0200 |
commit | 18d52323dd8ae4afe544fc41cecb6cfcf776561c (patch) | |
tree | 039638369f3f56269bb1d135ea646f034d913112 /apps/files/src/utils/davUtils.ts | |
parent | 080a8c7f1c69df419e768580153e9d46ee0839da (diff) | |
download | nextcloud-server-18d52323dd8ae4afe544fc41cecb6cfcf776561c.tar.gz nextcloud-server-18d52323dd8ae4afe544fc41cecb6cfcf776561c.zip |
refactor(files): migrate to @nextcloud/sharing
Signed-off-by: Grigorii K. Shartsev <me@shgk.me>
Diffstat (limited to 'apps/files/src/utils/davUtils.ts')
-rw-r--r-- | apps/files/src/utils/davUtils.ts | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/apps/files/src/utils/davUtils.ts b/apps/files/src/utils/davUtils.ts index cf49df5b278..d8dc12d069d 100644 --- a/apps/files/src/utils/davUtils.ts +++ b/apps/files/src/utils/davUtils.ts @@ -3,28 +3,10 @@ * SPDX-License-Identifier: AGPL-3.0-or-later */ -import { getCurrentUser } from '@nextcloud/auth' import { t } from '@nextcloud/l10n' import type { WebDAVClientError } from 'webdav' /** - * Check whether this is a public share - * @return {boolean} Whether this is a public share - */ -export function isPublic() { - return !getCurrentUser() -} - -/** - * Get the sharing token - * @return {string|null} The sharing token - */ -export function getToken() { - const tokenElement = document.getElementById('sharingToken') as (HTMLInputElement | null) - return tokenElement?.value -} - -/** * Whether error is a WebDAVClientError * @param error - Any exception * @return {boolean} - Whether error is a WebDAVClientError |