parent
0f90258ef9
commit
6bcfb29fa2
5 changed files with 18 additions and 6 deletions
|
@ -50,7 +50,7 @@ export class Subject extends RestModel {
|
|||
Favorite: false,
|
||||
Private: false,
|
||||
Excluded: false,
|
||||
Files: 0,
|
||||
FileCount: 0,
|
||||
Metadata: {},
|
||||
CreatedAt: "",
|
||||
UpdatedAt: "",
|
||||
|
|
|
@ -130,6 +130,18 @@
|
|||
</template>
|
||||
</v-edit-dialog>
|
||||
</v-card-title>
|
||||
|
||||
<v-card-text primary-title class="pb-2 pt-0 card-details" style="user-select: none;"
|
||||
@click.stop.prevent="">
|
||||
<div class="caption mb-2">
|
||||
<button v-if="label.PhotoCount === 1">
|
||||
<translate>Contains one entry.</translate>
|
||||
</button>
|
||||
<button v-else-if="label.PhotoCount > 0">
|
||||
<translate :translate-params="{n: label.PhotoCount}">Contains %{n} entries.</translate>
|
||||
</button>
|
||||
</div>
|
||||
</v-card-text>
|
||||
</v-card>
|
||||
</v-flex>
|
||||
</v-layout>
|
||||
|
|
|
@ -131,11 +131,11 @@
|
|||
</div>
|
||||
|
||||
<div class="caption mb-2">
|
||||
<button v-if="model.Files === 1">
|
||||
<button v-if="model.FileCount === 1">
|
||||
<translate>Contains one entry.</translate>
|
||||
</button>
|
||||
<button v-else-if="model.Files > 0">
|
||||
<translate :translate-params="{n: model.Files}">Contains %{n} entries.</translate>
|
||||
<button v-else-if="model.FileCount > 0">
|
||||
<translate :translate-params="{n: model.FileCount}">Contains %{n} entries.</translate>
|
||||
</button>
|
||||
</div>
|
||||
</v-card-text>
|
||||
|
|
|
@ -33,7 +33,7 @@ type Subject struct {
|
|||
SubjFavorite bool `gorm:"default:false" json:"Favorite" yaml:"Favorite,omitempty"`
|
||||
SubjPrivate bool `gorm:"default:false" json:"Private" yaml:"Private,omitempty"`
|
||||
SubjExcluded bool `gorm:"default:false" json:"Excluded" yaml:"Excluded,omitempty"`
|
||||
FileCount int `gorm:"default:0" json:"Files" yaml:"-"`
|
||||
FileCount int `gorm:"default:0" json:"FileCount" yaml:"-"`
|
||||
MetadataJSON json.RawMessage `gorm:"type:MEDIUMBLOB;" json:"Metadata,omitempty" yaml:"Metadata,omitempty"`
|
||||
CreatedAt time.Time `json:"CreatedAt" yaml:"-"`
|
||||
UpdatedAt time.Time `json:"UpdatedAt" yaml:"-"`
|
||||
|
|
|
@ -21,7 +21,7 @@ type SubjectResult struct {
|
|||
SubjFavorite bool `json:"Favorite"`
|
||||
SubjPrivate bool `json:"Private"`
|
||||
SubjExcluded bool `json:"Excluded"`
|
||||
FileCount int `json:"Files"`
|
||||
FileCount int `json:"FileCount"`
|
||||
Thumb string `json:"Thumb"`
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue