Frontend: Show file AspectRatio as returned by the backend

Signed-off-by: Michael Mayer <michael@liquidbytes.net>
This commit is contained in:
Michael Mayer 2020-07-20 19:28:01 +02:00
parent b1e4aa4d6c
commit 714edfebe5
4 changed files with 5 additions and 3 deletions

View file

@ -68,7 +68,7 @@
</td>
<td>{{ file.Hash }}</td>
</tr>
<tr v-if="file.Root">
<tr v-if="file.Root.length > 1">
<td>
<translate>Storage Folder</translate>
</td>
@ -126,7 +126,7 @@
<td>
<translate>Aspect Ratio</translate>
</td>
<td>{{ file.AspectRatio | number('0.00') }}</td>
<td>{{ file.AspectRatio }}</td>
</tr>
<tr v-if="file.MainColor">
<td>

View file

@ -41,7 +41,7 @@ export class File extends RestModel {
InstanceID: "",
UID: "",
PhotoUID: "",
Root: "",
Root: "/",
Name: "",
OriginalName: "",
Hash: "",

View file

@ -273,6 +273,7 @@
});
},
updateQuery() {
this.filter.q = this.filter.q.trim();
const len = this.filter.q.length;
if (len > 1 && len < 3) {

View file

@ -315,6 +315,7 @@
});
},
updateQuery() {
this.filter.q = this.filter.q.trim();
const len = this.filter.q.length;
if (len > 1 && len < 3) {