Fix clearing the label of a share

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 <danxuliu@gmail.com>
Signed-off-by: npmbuildbot-nextcloud[bot] <npmbuildbot-nextcloud[bot]@users.noreply.github.com>
pull/25017/head
Daniel Calviño Sánchez 5 years ago committed by npmbuildbot-nextcloud[bot]
parent d6d8fc4226
commit fb19d4afe2
  1. 2
      apps/files_sharing/js/dist/files_sharing_tab.js
  2. 2
      apps/files_sharing/js/dist/files_sharing_tab.js.map
  3. 2
      apps/files_sharing/src/components/SharingEntryLink.vue

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

@ -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"

Loading…
Cancel
Save