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();
}
removeShare() {
this.deleteSharedLink(this.sharedId);
}
onSlideShareChange(event: any) {
onSlideShareChange(event: MatSlideToggleChange) {
if (event.checked) {
this.createSharedLinks(this.data.node.entry.id);
} else {
@ -154,6 +150,7 @@ export class ShareDialogComponent implements OnInit, OnDestroy {
this.time.enable();
} else {
this.time.disable();
this.time.setValue(null);
}
}