Indexing: Add "Groom metadata" option to UI

Signed-off-by: Michael Mayer <michael@liquidbytes.net>
This commit is contained in:
Michael Mayer 2019-12-11 04:57:32 +01:00
parent 559da16f23
commit 592a6eac7a
2 changed files with 10 additions and 1 deletions

View File

@ -30,13 +30,19 @@
:label="labels.convertRaw" :label="labels.convertRaw"
></v-checkbox> ></v-checkbox>
<v-checkbox <v-checkbox
v-if="!readonly"
class="ma-0 pa-0" class="ma-0 pa-0"
v-model="options.createThumbs" v-model="options.createThumbs"
color="secondary-dark" color="secondary-dark"
:disabled="busy" :disabled="busy"
:label="labels.createThumbs" :label="labels.createThumbs"
></v-checkbox> ></v-checkbox>
<v-checkbox
class="ma-0 pa-0"
v-model="options.groomMetadata"
color="secondary-dark"
:disabled="busy"
:label="labels.groomMetadata"
></v-checkbox>
<v-btn <v-btn
:disabled="busy" :disabled="busy"
@ -75,11 +81,13 @@
skipUnchanged: true, skipUnchanged: true,
createThumbs: false, createThumbs: false,
convertRaw: false, convertRaw: false,
groomMetadata: false,
}, },
labels: { labels: {
skipUnchanged: this.$gettext("Skip unchanged files"), skipUnchanged: this.$gettext("Skip unchanged files"),
createThumbs: this.$gettext("Pre-render thumbnails"), createThumbs: this.$gettext("Pre-render thumbnails"),
convertRaw: this.$gettext("Convert RAW to JPEG"), convertRaw: this.$gettext("Convert RAW to JPEG"),
groomMetadata: this.$gettext("Groom metadata and estimate locations"),
} }
} }
}, },

View File

@ -4,4 +4,5 @@ type IndexerOptions struct {
SkipUnchanged bool `json:"skipUnchanged"` SkipUnchanged bool `json:"skipUnchanged"`
CreateThumbs bool `json:"createThumbs"` CreateThumbs bool `json:"createThumbs"`
ConvertRaw bool `json:"convertRaw"` ConvertRaw bool `json:"convertRaw"`
GroomMetadata bool `json:"groomMetadata"`
} }