mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
share link: fix regression with expiration toggle (#5577)
* share link: fix regression with expiration toggle * remove old method
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user