[ADF-2710] removed default shared link creation at the opening (#3430)

This commit is contained in:
Vito
2018-06-05 09:56:50 +01:00
committed by Eugenio Romano
parent 71d5259cb4
commit a41ad9ce00
2 changed files with 26 additions and 8 deletions

View File

@@ -52,7 +52,8 @@ export class ShareDialogComponent implements OnInit {
this.sharedId = this.data.node.entry.properties['qshare:sharedId'];
this.isFileShared = true;
} else {
this.createSharedLinks(this.data.node.entry.id);
this.isFileShared = false;
this.isDisabled = false;
}
}
}
@@ -87,6 +88,7 @@ export class ShareDialogComponent implements OnInit {
deleteSharedLink(sharedId: string) {
this.sharedLinksApiService.deleteSharedLink(sharedId).subscribe(() => {
this.data.node.entry.properties['qshare:sharedId'] = null;
this.isFileShared = false;
this.isDisabled = false;
},