mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-05-26 17:24:56 +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:
parent
b26991014c
commit
01d0f777c0
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user