diff --git a/src-ui/messages.xlf b/src-ui/messages.xlf
index 90f9287b7..7abb95823 100644
--- a/src-ui/messages.xlf
+++ b/src-ui/messages.xlf
@@ -5680,7 +5680,7 @@
src/app/components/common/share-links-dropdown/share-links-dropdown.component.ts
- 94
+ 102
@@ -5708,28 +5708,28 @@
Error retrieving links
src/app/components/common/share-links-dropdown/share-links-dropdown.component.ts
- 75
+ 83
days
src/app/components/common/share-links-dropdown/share-links-dropdown.component.ts
- 94
+ 102
Error deleting link
src/app/components/common/share-links-dropdown/share-links-dropdown.component.ts
- 123
+ 131
Error creating link
src/app/components/common/share-links-dropdown/share-links-dropdown.component.ts
- 151
+ 159
diff --git a/src-ui/src/app/components/common/share-links-dropdown/share-links-dropdown.component.ts b/src-ui/src/app/components/common/share-links-dropdown/share-links-dropdown.component.ts
index 16775c49d..66498eacc 100644
--- a/src-ui/src/app/components/common/share-links-dropdown/share-links-dropdown.component.ts
+++ b/src-ui/src/app/components/common/share-links-dropdown/share-links-dropdown.component.ts
@@ -35,8 +35,17 @@ export class ShareLinksDropdownComponent implements OnInit {
@Input()
disabled: boolean = false
+ private _hasArchiveVersion: boolean = true
+
@Input()
- hasArchiveVersion: boolean = true
+ set hasArchiveVersion(value: boolean) {
+ this._hasArchiveVersion = value
+ this.useArchiveVersion = value
+ }
+
+ get hasArchiveVersion(): boolean {
+ return this._hasArchiveVersion
+ }
shareLinks: ShareLink[]
@@ -56,7 +65,6 @@ export class ShareLinksDropdownComponent implements OnInit {
ngOnInit(): void {
if (this._documentId !== undefined) this.refresh()
- this.useArchiveVersion = this.hasArchiveVersion
}
refresh() {