From deb40c6b2c074c137ca18cf550e4c2502dbc237b Mon Sep 17 00:00:00 2001 From: "julia.kirschenheuter" Date: Tue, 5 Dec 2023 11:05:06 +0100 Subject: [PATCH] Replace input filed with password field and added password error message Remove unneeded NcDateTimePicker Signed-off-by: julia.kirschenheuter (cherry picked from commit 696545b5300326e57bd24821cb2746aee30a992b) Signed-off-by: julia.kirschenheuter --- .../src/views/SharingDetailsTab.vue | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/apps/files_sharing/src/views/SharingDetailsTab.vue b/apps/files_sharing/src/views/SharingDetailsTab.vue index d882aac9b87c0..8c0bb32f84d18 100644 --- a/apps/files_sharing/src/views/SharingDetailsTab.vue +++ b/apps/files_sharing/src/views/SharingDetailsTab.vue @@ -105,10 +105,10 @@ {{ t('files_sharing', 'Set password') }} - @@ -219,8 +219,8 @@ import { getLanguage } from '@nextcloud/l10n' import NcButton from '@nextcloud/vue/dist/Components/NcButton.js' import NcInputField from '@nextcloud/vue/dist/Components/NcInputField.js' +import NcPasswordField from '@nextcloud/vue/dist/Components/NcPasswordField.js' import NcAvatar from '@nextcloud/vue/dist/Components/NcAvatar.js' -import NcDateTimePicker from '@nextcloud/vue/dist/Components/NcDateTimePicker.js' import NcDateTimePickerNative from '@nextcloud/vue/dist/Components/NcDateTimePickerNative.js' import NcCheckboxRadioSwitch from '@nextcloud/vue/dist/Components/NcCheckboxRadioSwitch.js' import NcLoadingIcon from '@nextcloud/vue/dist/Components/NcLoadingIcon.js' @@ -256,7 +256,7 @@ export default { NcAvatar, NcButton, NcInputField, - NcDateTimePicker, + NcPasswordField, NcDateTimePickerNative, NcCheckboxRadioSwitch, NcLoadingIcon, @@ -646,6 +646,12 @@ export default { advancedControlExpandedValue() { return this.advancedSectionAccordionExpanded ? 'true' : 'false' }, + errorPasswordLabel() { + if (this.passwordError) { + return t('files_sharing', "Password field can't be empty") + } + return undefined + }, }, watch: { setCustomPermissions(isChecked) {