Only show link spinner if the share exists

If there is no share to delete do not set the spinner.
Fixes #21726
This commit is contained in:
Roeland Jago Douma 2016-02-10 11:08:15 +01:00
parent 9a2c517ca8
commit 630bee749b
1 changed files with 1 additions and 1 deletions

View File

@ -139,8 +139,8 @@
this.$el.find('.linkPassText').focus();
}
} else {
$loading.removeClass('hidden');
if (this.model.get('linkShare').isLinkShare) {
$loading.removeClass('hidden');
this.model.removeLinkShare();
} else {
this.$el.find('.linkPass').slideToggle(OC.menuSpeed);