share link: fix regression with expiration toggle (#5577)

* share link: fix regression with expiration toggle

* remove old method
This commit is contained in:
Denys Vuika 2020-03-31 07:34:25 +01:00 committed by GitHub
parent b26991014c
commit 01d0f777c0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -127,11 +127,7 @@ export class ShareDialogComponent implements OnInit, OnDestroy {
this.onDestroy$.complete(); this.onDestroy$.complete();
} }
removeShare() { onSlideShareChange(event: MatSlideToggleChange) {
this.deleteSharedLink(this.sharedId);
}
onSlideShareChange(event: any) {
if (event.checked) { if (event.checked) {
this.createSharedLinks(this.data.node.entry.id); this.createSharedLinks(this.data.node.entry.id);
} else { } else {
@ -154,6 +150,7 @@ export class ShareDialogComponent implements OnInit, OnDestroy {
this.time.enable(); this.time.enable();
} else { } else {
this.time.disable(); this.time.disable();
this.time.setValue(null);
} }
} }