Merge branch 'release/4.839.x' of https://gitlab.knecon.com/redactmanager/red-ui into release/4.839.x
This commit is contained in:
commit
e3ef820bac
@ -15,6 +15,7 @@ import { marker as _ } from '@biesbjerg/ngx-translate-extract-marker';
|
||||
import { HeadersConfiguration } from '@iqser/common-ui/lib/utils';
|
||||
import { LicenseService } from '@services/license.service';
|
||||
import { LicenseFeatures } from '../../admin/screens/license/utils/constants';
|
||||
import { TenantsService } from '@common-ui/tenants';
|
||||
import { UserPreferenceService } from '@users/user-preference.service';
|
||||
|
||||
export interface ActiveUpload {
|
||||
@ -45,6 +46,7 @@ export class FileUploadService extends GenericService<IFileUploadResult> impleme
|
||||
private readonly _licenseService: LicenseService,
|
||||
private readonly _toaster: Toaster,
|
||||
private readonly _userPreferenceService: UserPreferenceService,
|
||||
private readonly _tenantsService: TenantsService,
|
||||
) {
|
||||
super();
|
||||
const fileFetch$ = this.#fetchFiles$.pipe(
|
||||
@ -111,6 +113,11 @@ export class FileUploadService extends GenericService<IFileUploadResult> impleme
|
||||
option = res.applyToAllFiles ? currentOption : undefined;
|
||||
}
|
||||
|
||||
const existingFile = dossierFiles.find(pf => pf.filename === file.file.name);
|
||||
if (OverwriteFileOptions.FULL_OVERWRITE === currentOption || OverwriteFileOptions.PARTIAL_OVERWRITE === currentOption) {
|
||||
localStorage.removeItem(`${this._tenantsService.activeTenantId}-annotations-${existingFile.id}`);
|
||||
}
|
||||
|
||||
if (currentOption === OverwriteFileOptions.PARTIAL_OVERWRITE) {
|
||||
file.keepManualRedactions = true;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user