Frontend: No edit button if album name is empty

Should not happen

Signed-off-by: Michael Mayer <michael@liquidbytes.net>
This commit is contained in:
Michael Mayer 2020-01-21 16:49:59 +01:00
parent 7d75683b3a
commit f8c60fad7a
2 changed files with 8 additions and 8 deletions

View file

@ -8,12 +8,9 @@
lazy
@save="onSave(album)"
class="p-inline-edit">
<v-toolbar-title v-if="album.AlbumName">
{{ album.AlbumName }}
</v-toolbar-title>
<v-toolbar-title v-else>
<v-icon>edit</v-icon>
</v-toolbar-title>
<v-toolbar-title>
{{ album.AlbumName }}
</v-toolbar-title>
<template v-slot:input>
<v-text-field
v-model="album.AlbumName"
@ -122,7 +119,10 @@
filterChange: Function,
},
data() {
const cameras = [{ID: 0, CameraModel: this.$gettext('All Cameras')}].concat(this.$config.getValue('cameras'));
const cameras = [{
ID: 0,
CameraModel: this.$gettext('All Cameras')
}].concat(this.$config.getValue('cameras'));
const countries = [{
code: '',
name: this.$gettext('All Countries')

View file

@ -6,7 +6,7 @@
:refresh="refresh"></p-album-toolbar>
<v-container fluid class="pa-4" v-if="loading">
<v-progress-linear color="secondary-dark" :indeterminate="true"></v-progress-linear>
<v-progress-linear color="secondary-dark" :indeterminate="true"></v-progress-linear>
</v-container>
<v-container fluid class="pa-0" v-else>
<p-scroll-top></p-scroll-top>