UI: Minor fixes

This commit is contained in:
Igor Kulikov 2023-12-01 13:01:07 +02:00
parent 9b474dee1e
commit b9b11e3b9a
2 changed files with 2 additions and 3 deletions

View File

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

View File

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