Browse Source

UI: Minor fixes

pull/9542/head
Igor Kulikov 3 years ago
parent
commit
b9b11e3b9a
  1. 2
      ui-ngx/src/app/shared/components/image/image-gallery.component.ts
  2. 3
      ui-ngx/src/app/shared/import-export/import-export.service.ts

2
ui-ngx/src/app/shared/components/image/image-gallery.component.ts

@ -259,7 +259,7 @@ export class ImageGalleryComponent extends PageComponent implements OnInit, OnDe
} }
} else { } else {
this.gridImagesFilter = { this.gridImagesFilter = {
search: isNotEmptyStr(value) ? encodeURI(value) : null, search: isNotEmptyStr(value) ? value.trim() : null,
includeSystemImages: this.includeSystemImages includeSystemImages: this.includeSystemImages
}; };
this.cd.markForCheck(); this.cd.markForCheck();

3
ui-ngx/src/app/shared/import-export/import-export.service.ts

@ -111,8 +111,7 @@ export class ImportExportService {
this.imageService.exportImage(type, key).subscribe( this.imageService.exportImage(type, key).subscribe(
{ {
next: (imageData) => { next: (imageData) => {
let name = imageData.title; const name = imageData.fileName.split('.')[0];
name = name.toLowerCase().replace(/\W/g, '_');
this.exportToPc(imageData, name); this.exportToPc(imageData, name);
}, },
error: (e) => { error: (e) => {

Loading…
Cancel
Save