diff --git a/frontend/src/dialog/p-photo-edit-dialog.vue b/frontend/src/dialog/p-photo-edit-dialog.vue index 1943edf1c..1d82c2aea 100644 --- a/frontend/src/dialog/p-photo-edit-dialog.vue +++ b/frontend/src/dialog/p-photo-edit-dialog.vue @@ -41,6 +41,10 @@ Files + + Advanced + + + + + + @@ -64,6 +72,7 @@ import PhotoEdit from "./photo/edit.vue"; import PhotoLabels from "./photo/labels.vue"; import PhotoFiles from "./photo/files.vue"; + import PhotoAdvanced from "./photo/advanced.vue"; export default { name: 'p-photo-edit-dialog', @@ -77,6 +86,7 @@ 'p-tab-photo-edit': PhotoEdit, 'p-tab-photo-labels': PhotoLabels, 'p-tab-photo-files': PhotoFiles, + 'p-tab-photo-advanced': PhotoAdvanced, }, computed: { title: function () { diff --git a/frontend/src/dialog/photo/advanced.vue b/frontend/src/dialog/photo/advanced.vue new file mode 100644 index 000000000..31cbb7df6 --- /dev/null +++ b/frontend/src/dialog/photo/advanced.vue @@ -0,0 +1,101 @@ + + + diff --git a/frontend/src/model/photo.js b/frontend/src/model/photo.js index 076995e7e..38ba1bb9b 100644 --- a/frontend/src/model/photo.js +++ b/frontend/src/model/photo.js @@ -28,6 +28,7 @@ export class Photo extends RestModel { Path: "", Color: "", Name: "", + OriginalName: "", Title: "", TitleSrc: "", Description: "", @@ -316,6 +317,18 @@ export class Photo extends RestModel { return this.Lat !== 0 || this.Lng !== 0; } + countryName() { + if (this.Country !== "zz") { + const country = countries.find(c => c.Code === this.Country); + + if (country) { + return country.Name; + } + } + + return "Unknown"; + } + locationInfo() { if (this.PlaceID === "zz" && this.Country !== "zz") { const country = countries.find(c => c.Code === this.Country); diff --git a/internal/form/photo.go b/internal/form/photo.go index cd1373fc1..e61b42d7f 100644 --- a/internal/form/photo.go +++ b/internal/form/photo.go @@ -45,6 +45,9 @@ type Photo struct { CameraID uint `json:"CameraID"` CameraSrc string `json:"CameraSrc"` LensID uint `json:"LensID"` + PhotoYear int `json:"Year"` + PhotoMonth int `json:"Month"` + OriginalName string `json:"OriginalName"` } func NewPhoto(m interface{}) (f Photo, err error) {