From 93f2ef45f55632d88a83b77350d24da4f24e3f7d Mon Sep 17 00:00:00 2001
From: shamoon <4887959+shamoon@users.noreply.github.com>
Date: Tue, 24 Dec 2024 23:11:03 -0800
Subject: [PATCH] Fix: fix share link archive version detection (#8551)
---
src-ui/messages.xlf | 10 +++++-----
.../share-links-dropdown.component.ts | 12 ++++++++++--
2 files changed, 15 insertions(+), 7 deletions(-)
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() {