Frontend: Show file AspectRatio as returned by the backend
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
This commit is contained in:
parent
b1e4aa4d6c
commit
714edfebe5
4 changed files with 5 additions and 3 deletions
|
@ -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>
|
||||
|
|
|
@ -41,7 +41,7 @@ export class File extends RestModel {
|
|||
InstanceID: "",
|
||||
UID: "",
|
||||
PhotoUID: "",
|
||||
Root: "",
|
||||
Root: "/",
|
||||
Name: "",
|
||||
OriginalName: "",
|
||||
Hash: "",
|
||||
|
|
|
@ -273,6 +273,7 @@
|
|||
});
|
||||
},
|
||||
updateQuery() {
|
||||
this.filter.q = this.filter.q.trim();
|
||||
const len = this.filter.q.length;
|
||||
|
||||
if (len > 1 && len < 3) {
|
||||
|
|
|
@ -315,6 +315,7 @@
|
|||
});
|
||||
},
|
||||
updateQuery() {
|
||||
this.filter.q = this.filter.q.trim();
|
||||
const len = this.filter.q.length;
|
||||
|
||||
if (len > 1 && len < 3) {
|
||||
|
|
Loading…
Reference in a new issue