Skip to content

Commit

Permalink
Merged in bugfix/SHIBUI-376 (pull request #27)
Browse files Browse the repository at this point in the history
Fixed issue with XML preview

Approved-by: Ryan Mathis <rmathis@unicon.net>
  • Loading branch information
rmathis committed Mar 23, 2018
1 parent 0159c2d commit 9294428
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { MetadataProvider } from '../../metadata-provider/model/metadata-provide
import { EntityDescriptorService } from '../service/entity-descriptor.service';
import * as FileSaver from 'file-saver';
import { Subscription } from 'rxjs/Subscription';
import XmlFormatter from 'xml-formatter';
import * as XmlFormatter from 'xml-formatter';

@Component({
selector: 'preview-provider-xml',
Expand All @@ -20,7 +20,7 @@ export class PreviewProviderDialogComponent implements OnInit, OnDestroy {
constructor(
public activeModal: NgbActiveModal,
private entityService: EntityDescriptorService
) { }
) {}

preview(xml): void {
const blob = new Blob([XmlFormatter(xml)], { type: 'text/xml;charset=utf-8' });
Expand Down

0 comments on commit 9294428

Please sign in to comment.