From fb19d4afe29643028a97d66c990fc0dd4dff85f4 Mon Sep 17 00:00:00 2001 From: Daniel Calviño Sánchez Date: Thu, 7 Jan 2021 18:10:11 +0100 Subject: Fix clearing the label of a share MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit When the label is being edited its value is stored in "newLabel", and the original label is shown only if "newLabel" is not set. However, as it was checked against any falsy value instead of only undefined when the label was cleared and thus it has an empty value the original label was shown instead. Signed-off-by: Daniel Calviño Sánchez Signed-off-by: npmbuildbot-nextcloud[bot] --- apps/files_sharing/src/components/SharingEntryLink.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'apps/files_sharing/src') diff --git a/apps/files_sharing/src/components/SharingEntryLink.vue b/apps/files_sharing/src/components/SharingEntryLink.vue index 73b7ea073c3..522e8e23355 100644 --- a/apps/files_sharing/src/components/SharingEntryLink.vue +++ b/apps/files_sharing/src/components/SharingEntryLink.vue @@ -141,7 +141,7 @@ :class="{ error: errors.label }" :disabled="saving" :aria-label="t('files_sharing', 'Share label')" - :value="share.newLabel || share.label" + :value="share.newLabel !== undefined ? share.newLabel : share.label" icon="icon-edit" maxlength="255" @update:value="onLabelChange" -- cgit v1.2.3