fix ui and download bug

This commit is contained in:
rubikscraft 2022-09-01 14:53:55 +02:00
parent 1fdbe9edc7
commit 3a1f279d32
No known key found for this signature in database
GPG key ID: 1463EBE9200A5CD4
2 changed files with 5 additions and 1 deletions

View file

@ -16,3 +16,7 @@ ngx-dropzone {
border-style: initial;
}
}
.centered {
padding-inline: 1rem;
}

View file

@ -153,7 +153,7 @@ export class ApiService {
if (HasSuccess(filetype)) {
const ext = FileType2Ext(filetype.identifier);
if (HasSuccess(ext)) {
if (name.endsWith(ext)) {
if (!name.endsWith(ext)) {
name += '.' + ext;
}
}