RED-5213 rss xml and json export
This commit is contained in:
parent
38b62dfe27
commit
85b8d459c2
@ -18,9 +18,9 @@
|
||||
<button color="primary" mat-flat-button type="button" (click)="exportXML()">
|
||||
{{ 'rss-dialog.actions.export-xml' | translate }}
|
||||
</button>
|
||||
<!-- <button color="primary" mat-flat-button type="button" (click)="exportAllInDossier()">-->
|
||||
<!-- {{ 'Export All' }}-->
|
||||
<!-- </button>-->
|
||||
<button color="primary" mat-flat-button type="button" (click)="exportAllInDossier()" *ngIf="userPreferences.areDevFeaturesEnabled">
|
||||
{{ 'Export All' }}
|
||||
</button>
|
||||
<div class="all-caps-label cancel" mat-dialog-close translate="rss-dialog.actions.close"></div>
|
||||
</div>
|
||||
|
||||
|
||||
@ -1,12 +1,12 @@
|
||||
import { Component, Inject } from '@angular/core';
|
||||
import { BaseDialogComponent, SaveOptions } from '@iqser/common-ui';
|
||||
import { BaseDialogComponent } from '@iqser/common-ui';
|
||||
import { MAT_DIALOG_DATA, MatDialogRef } from '@angular/material/dialog';
|
||||
import { RssService } from '@services/files/rss.service';
|
||||
import { IFile, IRssEntry } from '@red/domain';
|
||||
import { BehaviorSubject, firstValueFrom, Observable } from 'rxjs';
|
||||
import { saveAs } from 'file-saver';
|
||||
import { map, tap } from 'rxjs/operators';
|
||||
import { firstValueFrom, Observable } from 'rxjs';
|
||||
import { map } from 'rxjs/operators';
|
||||
import { FilesMapService } from '@services/files/files-map.service';
|
||||
import { UserPreferenceService } from '@users/user-preference.service';
|
||||
|
||||
interface RssData {
|
||||
file: IFile;
|
||||
@ -22,6 +22,7 @@ export class RssDialogComponent extends BaseDialogComponent {
|
||||
constructor(
|
||||
protected readonly _dialogRef: MatDialogRef<RssDialogComponent>,
|
||||
private readonly _rssService: RssService,
|
||||
readonly userPreferences: UserPreferenceService,
|
||||
private readonly _filesMapService: FilesMapService,
|
||||
@Inject(MAT_DIALOG_DATA) readonly data: RssData,
|
||||
) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user