Add flag for 360° panoramas #352

Signed-off-by: Michael Mayer <michael@liquidbytes.net>
This commit is contained in:
Michael Mayer 2020-07-15 20:59:33 +02:00
parent b314ef2a27
commit db5edb8e4d
6 changed files with 19 additions and 2 deletions

View file

@ -113,7 +113,7 @@
</tr>
<tr>
<td>
<translate key="Scan">Scan</translate>
<translate>Scan</translate>
</td>
<td>
<v-switch
@ -124,6 +124,19 @@
></v-switch>
</td>
</tr>
<tr>
<td>
<translate>360°</translate>
</td>
<td>
<v-switch
@change="save"
hide-details
v-model="model.P360"
:label="model.P360 ? $gettext('Yes') : $gettext('No')"
></v-switch>
</td>
</tr>
<tr>
<td :title="model.PlaceSrc">
<translate>Place</translate> <v-icon v-if="model.PlaceSrc === 'manual'" class="src">check</v-icon>

View file

@ -1470,7 +1470,7 @@ msgstr ""
msgid "Reload"
msgstr ""
#: src/dialog/reload.vue:57
#: src/dialog/reload.vue:58
#: src/pages/settings/general.vue:377
msgid "Reloading…"
msgstr ""

View file

@ -56,6 +56,7 @@ export class Photo extends RestModel {
Favorite: false,
Private: false,
Scan: false,
P360: false,
TakenAt: "",
TakenAtLocal: "",
TakenSrc: "",

View file

@ -50,6 +50,7 @@ type Photo struct {
PhotoFavorite bool `json:"Favorite" yaml:"Favorite,omitempty"`
PhotoPrivate bool `json:"Private" yaml:"Private,omitempty"`
PhotoScan bool `json:"Scan" yaml:"Scan,omitempty"`
PhotoP360 bool `gorm:"column:photo_P360" json:"P360" yaml:"P360,omitempty"`
TimeZone string `gorm:"type:varbinary(64);" json:"TimeZone" yaml:"-"`
PlaceID string `gorm:"type:varbinary(42);index;default:'zz'" json:"PlaceID" yaml:"-"`
PlaceSrc string `gorm:"type:varbinary(8);" json:"PlaceSrc" yaml:"PlaceSrc,omitempty"`

View file

@ -36,6 +36,7 @@ type Photo struct {
PhotoPrivate bool `json:"Private"`
PhotoReview bool `json:"Review"`
PhotoScan bool `json:"Scan"`
PhotoP360 bool `json:"P360"`
PhotoAltitude int `json:"Altitude"`
PhotoLat float32 `json:"Lat"`
PhotoLng float32 `json:"Lng"`

View file

@ -40,6 +40,7 @@ type PhotoResult struct {
PhotoQuality int `json:"Quality"`
PhotoResolution int `json:"Resolution"`
PhotoScan bool `json:"Scan"`
PhotoP360 bool `json:"P360"`
CameraID uint `json:"CameraID"` // Camera
CameraSerial string `json:"CameraSerial,omitempty"`
CameraSrc string `json:"CameraSrc,omitempty"`