From 01d0f777c088fca248fe471ed076f9aac103a9f0 Mon Sep 17 00:00:00 2001 From: Denys Vuika Date: Tue, 31 Mar 2020 07:34:25 +0100 Subject: [PATCH] share link: fix regression with expiration toggle (#5577) * share link: fix regression with expiration toggle * remove old method --- .../lib/content-node-share/content-node-share.dialog.ts | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/lib/content-services/src/lib/content-node-share/content-node-share.dialog.ts b/lib/content-services/src/lib/content-node-share/content-node-share.dialog.ts index 8d9b9c9de7..b73804a49e 100644 --- a/lib/content-services/src/lib/content-node-share/content-node-share.dialog.ts +++ b/lib/content-services/src/lib/content-node-share/content-node-share.dialog.ts @@ -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); } }