mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-04-02 13:45:10 -05:00
Fix: fix share link archive version detection (#8551)
This commit is contained in:
parent
8291ec17d4
commit
93f2ef45f5
@ -5680,7 +5680,7 @@
|
|||||||
</context-group>
|
</context-group>
|
||||||
<context-group purpose="location">
|
<context-group purpose="location">
|
||||||
<context context-type="sourcefile">src/app/components/common/share-links-dropdown/share-links-dropdown.component.ts</context>
|
<context context-type="sourcefile">src/app/components/common/share-links-dropdown/share-links-dropdown.component.ts</context>
|
||||||
<context context-type="linenumber">94</context>
|
<context context-type="linenumber">102</context>
|
||||||
</context-group>
|
</context-group>
|
||||||
</trans-unit>
|
</trans-unit>
|
||||||
<trans-unit id="8542568275115626925" datatype="html">
|
<trans-unit id="8542568275115626925" datatype="html">
|
||||||
@ -5708,28 +5708,28 @@
|
|||||||
<source>Error retrieving links</source>
|
<source>Error retrieving links</source>
|
||||||
<context-group purpose="location">
|
<context-group purpose="location">
|
||||||
<context context-type="sourcefile">src/app/components/common/share-links-dropdown/share-links-dropdown.component.ts</context>
|
<context context-type="sourcefile">src/app/components/common/share-links-dropdown/share-links-dropdown.component.ts</context>
|
||||||
<context context-type="linenumber">75</context>
|
<context context-type="linenumber">83</context>
|
||||||
</context-group>
|
</context-group>
|
||||||
</trans-unit>
|
</trans-unit>
|
||||||
<trans-unit id="3242255798983858463" datatype="html">
|
<trans-unit id="3242255798983858463" datatype="html">
|
||||||
<source><x id="PH" equiv-text="days"/> days</source>
|
<source><x id="PH" equiv-text="days"/> days</source>
|
||||||
<context-group purpose="location">
|
<context-group purpose="location">
|
||||||
<context context-type="sourcefile">src/app/components/common/share-links-dropdown/share-links-dropdown.component.ts</context>
|
<context context-type="sourcefile">src/app/components/common/share-links-dropdown/share-links-dropdown.component.ts</context>
|
||||||
<context context-type="linenumber">94</context>
|
<context context-type="linenumber">102</context>
|
||||||
</context-group>
|
</context-group>
|
||||||
</trans-unit>
|
</trans-unit>
|
||||||
<trans-unit id="2897042887615940599" datatype="html">
|
<trans-unit id="2897042887615940599" datatype="html">
|
||||||
<source>Error deleting link</source>
|
<source>Error deleting link</source>
|
||||||
<context-group purpose="location">
|
<context-group purpose="location">
|
||||||
<context context-type="sourcefile">src/app/components/common/share-links-dropdown/share-links-dropdown.component.ts</context>
|
<context context-type="sourcefile">src/app/components/common/share-links-dropdown/share-links-dropdown.component.ts</context>
|
||||||
<context context-type="linenumber">123</context>
|
<context context-type="linenumber">131</context>
|
||||||
</context-group>
|
</context-group>
|
||||||
</trans-unit>
|
</trans-unit>
|
||||||
<trans-unit id="8400747326190565173" datatype="html">
|
<trans-unit id="8400747326190565173" datatype="html">
|
||||||
<source>Error creating link</source>
|
<source>Error creating link</source>
|
||||||
<context-group purpose="location">
|
<context-group purpose="location">
|
||||||
<context context-type="sourcefile">src/app/components/common/share-links-dropdown/share-links-dropdown.component.ts</context>
|
<context context-type="sourcefile">src/app/components/common/share-links-dropdown/share-links-dropdown.component.ts</context>
|
||||||
<context context-type="linenumber">151</context>
|
<context context-type="linenumber">159</context>
|
||||||
</context-group>
|
</context-group>
|
||||||
</trans-unit>
|
</trans-unit>
|
||||||
<trans-unit id="9180110319941008393" datatype="html">
|
<trans-unit id="9180110319941008393" datatype="html">
|
||||||
|
@ -35,8 +35,17 @@ export class ShareLinksDropdownComponent implements OnInit {
|
|||||||
@Input()
|
@Input()
|
||||||
disabled: boolean = false
|
disabled: boolean = false
|
||||||
|
|
||||||
|
private _hasArchiveVersion: boolean = true
|
||||||
|
|
||||||
@Input()
|
@Input()
|
||||||
hasArchiveVersion: boolean = true
|
set hasArchiveVersion(value: boolean) {
|
||||||
|
this._hasArchiveVersion = value
|
||||||
|
this.useArchiveVersion = value
|
||||||
|
}
|
||||||
|
|
||||||
|
get hasArchiveVersion(): boolean {
|
||||||
|
return this._hasArchiveVersion
|
||||||
|
}
|
||||||
|
|
||||||
shareLinks: ShareLink[]
|
shareLinks: ShareLink[]
|
||||||
|
|
||||||
@ -56,7 +65,6 @@ export class ShareLinksDropdownComponent implements OnInit {
|
|||||||
|
|
||||||
ngOnInit(): void {
|
ngOnInit(): void {
|
||||||
if (this._documentId !== undefined) this.refresh()
|
if (this._documentId !== undefined) this.refresh()
|
||||||
this.useArchiveVersion = this.hasArchiveVersion
|
|
||||||
}
|
}
|
||||||
|
|
||||||
refresh() {
|
refresh() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user