edit-meta: disable when processing
Signed-off-by: Varun Patil <radialapps@gmail.com>dexie
parent
a3f327ed36
commit
f6ba121c40
|
@ -13,6 +13,7 @@
|
||||||
:label="t('memories', 'Year')"
|
:label="t('memories', 'Year')"
|
||||||
:label-visible="true"
|
:label-visible="true"
|
||||||
:placeholder="t('memories', 'Year')"
|
:placeholder="t('memories', 'Year')"
|
||||||
|
:disabled="disabled"
|
||||||
@input="newestChange()"
|
@input="newestChange()"
|
||||||
/>
|
/>
|
||||||
<NcTextField
|
<NcTextField
|
||||||
|
@ -21,6 +22,7 @@
|
||||||
:label="t('memories', 'Month')"
|
:label="t('memories', 'Month')"
|
||||||
:label-visible="true"
|
:label-visible="true"
|
||||||
:placeholder="t('memories', 'Month')"
|
:placeholder="t('memories', 'Month')"
|
||||||
|
:disabled="disabled"
|
||||||
@input="newestChange()"
|
@input="newestChange()"
|
||||||
/>
|
/>
|
||||||
<NcTextField
|
<NcTextField
|
||||||
|
@ -29,6 +31,7 @@
|
||||||
:label="t('memories', 'Day')"
|
:label="t('memories', 'Day')"
|
||||||
:label-visible="true"
|
:label-visible="true"
|
||||||
:placeholder="t('memories', 'Day')"
|
:placeholder="t('memories', 'Day')"
|
||||||
|
:disabled="disabled"
|
||||||
@input="newestChange()"
|
@input="newestChange()"
|
||||||
/>
|
/>
|
||||||
<NcTextField
|
<NcTextField
|
||||||
|
@ -37,6 +40,7 @@
|
||||||
:label="t('memories', 'Time')"
|
:label="t('memories', 'Time')"
|
||||||
:label-visible="true"
|
:label-visible="true"
|
||||||
:placeholder="t('memories', 'Hour')"
|
:placeholder="t('memories', 'Hour')"
|
||||||
|
:disabled="disabled"
|
||||||
@input="newestChange(true)"
|
@input="newestChange(true)"
|
||||||
/>
|
/>
|
||||||
<NcTextField
|
<NcTextField
|
||||||
|
@ -44,6 +48,7 @@
|
||||||
:value.sync="minute"
|
:value.sync="minute"
|
||||||
:label="t('memories', 'Minute')"
|
:label="t('memories', 'Minute')"
|
||||||
:placeholder="t('memories', 'Minute')"
|
:placeholder="t('memories', 'Minute')"
|
||||||
|
:disabled="disabled"
|
||||||
@input="newestChange(true)"
|
@input="newestChange(true)"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
@ -62,6 +67,7 @@
|
||||||
:label="t('memories', 'Year')"
|
:label="t('memories', 'Year')"
|
||||||
:label-visible="true"
|
:label-visible="true"
|
||||||
:placeholder="t('memories', 'Year')"
|
:placeholder="t('memories', 'Year')"
|
||||||
|
:disabled="disabled"
|
||||||
@input="oldestChange()"
|
@input="oldestChange()"
|
||||||
/>
|
/>
|
||||||
<NcTextField
|
<NcTextField
|
||||||
|
@ -70,6 +76,7 @@
|
||||||
:label="t('memories', 'Month')"
|
:label="t('memories', 'Month')"
|
||||||
:label-visible="true"
|
:label-visible="true"
|
||||||
:placeholder="t('memories', 'Month')"
|
:placeholder="t('memories', 'Month')"
|
||||||
|
:disabled="disabled"
|
||||||
@input="oldestChange()"
|
@input="oldestChange()"
|
||||||
/>
|
/>
|
||||||
<NcTextField
|
<NcTextField
|
||||||
|
@ -78,6 +85,7 @@
|
||||||
:label="t('memories', 'Day')"
|
:label="t('memories', 'Day')"
|
||||||
:label-visible="true"
|
:label-visible="true"
|
||||||
:placeholder="t('memories', 'Day')"
|
:placeholder="t('memories', 'Day')"
|
||||||
|
:disabled="disabled"
|
||||||
@input="oldestChange()"
|
@input="oldestChange()"
|
||||||
/>
|
/>
|
||||||
<NcTextField
|
<NcTextField
|
||||||
|
@ -86,6 +94,7 @@
|
||||||
:label="t('memories', 'Time')"
|
:label="t('memories', 'Time')"
|
||||||
:label-visible="true"
|
:label-visible="true"
|
||||||
:placeholder="t('memories', 'Hour')"
|
:placeholder="t('memories', 'Hour')"
|
||||||
|
:disabled="disabled"
|
||||||
@input="oldestChange()"
|
@input="oldestChange()"
|
||||||
/>
|
/>
|
||||||
<NcTextField
|
<NcTextField
|
||||||
|
@ -93,6 +102,7 @@
|
||||||
:value.sync="minuteLast"
|
:value.sync="minuteLast"
|
||||||
:label="t('memories', 'Minute')"
|
:label="t('memories', 'Minute')"
|
||||||
:placeholder="t('memories', 'Minute')"
|
:placeholder="t('memories', 'Minute')"
|
||||||
|
:disabled="disabled"
|
||||||
@input="oldestChange()"
|
@input="oldestChange()"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
@ -119,6 +129,10 @@ export default defineComponent({
|
||||||
type: Array<IPhoto>,
|
type: Array<IPhoto>,
|
||||||
required: true,
|
required: true,
|
||||||
},
|
},
|
||||||
|
disabled: {
|
||||||
|
type: Boolean,
|
||||||
|
default: false,
|
||||||
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
data: () => ({
|
data: () => ({
|
||||||
|
|
|
@ -7,6 +7,7 @@
|
||||||
<NcTextField
|
<NcTextField
|
||||||
class="field"
|
class="field"
|
||||||
:id="'exif-field-' + field.field"
|
:id="'exif-field-' + field.field"
|
||||||
|
:disabled="disabled"
|
||||||
:label-outside="true"
|
:label-outside="true"
|
||||||
:value.sync="exif[field.field]"
|
:value.sync="exif[field.field]"
|
||||||
:placeholder="placeholder(field)"
|
:placeholder="placeholder(field)"
|
||||||
|
@ -43,6 +44,10 @@ export default defineComponent({
|
||||||
type: Array<IPhoto>,
|
type: Array<IPhoto>,
|
||||||
required: true,
|
required: true,
|
||||||
},
|
},
|
||||||
|
disabled: {
|
||||||
|
type: Boolean,
|
||||||
|
default: false,
|
||||||
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
data: () => ({
|
data: () => ({
|
||||||
|
|
|
@ -7,12 +7,17 @@
|
||||||
|
|
||||||
<div class="action">
|
<div class="action">
|
||||||
<NcActions :inline="2">
|
<NcActions :inline="2">
|
||||||
<NcActionButton v-if="dirty" :aria-label="t('memories', 'Reset')" @click="reset()">
|
<NcActionButton v-if="dirty" :aria-label="t('memories', 'Reset')" @click="reset()" :disabled="disabled">
|
||||||
{{ t('memories', 'Reset') }}
|
{{ t('memories', 'Reset') }}
|
||||||
<template #icon> <UndoIcon :size="20" /> </template>
|
<template #icon> <UndoIcon :size="20" /> </template>
|
||||||
</NcActionButton>
|
</NcActionButton>
|
||||||
|
|
||||||
<NcActionButton v-if="lat && lon" :aria-label="t('memories', 'Remove location')" @click="clear()">
|
<NcActionButton
|
||||||
|
v-if="lat && lon"
|
||||||
|
:aria-label="t('memories', 'Remove location')"
|
||||||
|
@click="clear()"
|
||||||
|
:disabled="disabled"
|
||||||
|
>
|
||||||
{{ t('memories', 'Remove location') }}
|
{{ t('memories', 'Remove location') }}
|
||||||
<template #icon> <CloseIcon :size="20" /> </template>
|
<template #icon> <CloseIcon :size="20" /> </template>
|
||||||
</NcActionButton>
|
</NcActionButton>
|
||||||
|
@ -23,6 +28,7 @@
|
||||||
<NcTextField
|
<NcTextField
|
||||||
:value.sync="searchBar"
|
:value.sync="searchBar"
|
||||||
:placeholder="t('memories', 'Search location / landmark')"
|
:placeholder="t('memories', 'Search location / landmark')"
|
||||||
|
:disabled="disabled"
|
||||||
trailing-button-icon="arrowRight"
|
trailing-button-icon="arrowRight"
|
||||||
:show-trailing-button="searchBar.length > 0 && !loading"
|
:show-trailing-button="searchBar.length > 0 && !loading"
|
||||||
@trailing-button-click="search"
|
@trailing-button-click="search"
|
||||||
|
@ -45,6 +51,7 @@
|
||||||
<li
|
<li
|
||||||
v-for="option in options"
|
v-for="option in options"
|
||||||
:key="option.osm_id"
|
:key="option.osm_id"
|
||||||
|
:disabled="disabled"
|
||||||
@click="select(option)"
|
@click="select(option)"
|
||||||
@keypress.enter="select(option)"
|
@keypress.enter="select(option)"
|
||||||
tabindex="0"
|
tabindex="0"
|
||||||
|
@ -96,6 +103,10 @@ export default defineComponent({
|
||||||
type: Array<IPhoto>,
|
type: Array<IPhoto>,
|
||||||
required: true,
|
required: true,
|
||||||
},
|
},
|
||||||
|
disabled: {
|
||||||
|
type: Boolean,
|
||||||
|
default: false,
|
||||||
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
data: () => ({
|
data: () => ({
|
||||||
|
|
|
@ -15,14 +15,14 @@
|
||||||
<div class="title-text">
|
<div class="title-text">
|
||||||
{{ t('memories', 'Date / Time') }}
|
{{ t('memories', 'Date / Time') }}
|
||||||
</div>
|
</div>
|
||||||
<EditDate ref="editDate" :photos="photos" />
|
<EditDate ref="editDate" :photos="photos" :disabled="processing" />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div v-if="config.systemtags_enabled && sections.includes(2)">
|
<div v-if="config.systemtags_enabled && sections.includes(2)">
|
||||||
<div class="title-text">
|
<div class="title-text">
|
||||||
{{ t('memories', 'Collaborative Tags') }}
|
{{ t('memories', 'Collaborative Tags') }}
|
||||||
</div>
|
</div>
|
||||||
<EditTags ref="editTags" :photos="photos" />
|
<EditTags ref="editTags" :photos="photos" :disabled="processing" />
|
||||||
<div class="tag-padding" v-if="sections.length === 1"></div>
|
<div class="tag-padding" v-if="sections.length === 1"></div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@ -30,14 +30,14 @@
|
||||||
<div class="title-text">
|
<div class="title-text">
|
||||||
{{ t('memories', 'EXIF Fields') }}
|
{{ t('memories', 'EXIF Fields') }}
|
||||||
</div>
|
</div>
|
||||||
<EditExif ref="editExif" :photos="photos" @save="save" />
|
<EditExif ref="editExif" :photos="photos" :disabled="processing" @save="save" />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div v-if="sections.includes(4)">
|
<div v-if="sections.includes(4)">
|
||||||
<div class="title-text">
|
<div class="title-text">
|
||||||
{{ t('memories', 'Geolocation') }}
|
{{ t('memories', 'Geolocation') }}
|
||||||
</div>
|
</div>
|
||||||
<EditLocation ref="editLocation" :photos="photos" />
|
<EditLocation ref="editLocation" :photos="photos" :disabled="processing" />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
|
@ -4,6 +4,7 @@
|
||||||
ref="selectTags"
|
ref="selectTags"
|
||||||
class="nc-comp"
|
class="nc-comp"
|
||||||
v-model="tagSelection"
|
v-model="tagSelection"
|
||||||
|
:disabled="disabled"
|
||||||
:limit="null"
|
:limit="null"
|
||||||
:options-filter="tagFilter"
|
:options-filter="tagFilter"
|
||||||
:get-option-label="tagLabel"
|
:get-option-label="tagLabel"
|
||||||
|
@ -32,6 +33,10 @@ export default defineComponent({
|
||||||
type: Array<IPhoto>,
|
type: Array<IPhoto>,
|
||||||
required: true,
|
required: true,
|
||||||
},
|
},
|
||||||
|
disabled: {
|
||||||
|
type: Boolean,
|
||||||
|
default: false,
|
||||||
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
data: () => ({
|
data: () => ({
|
||||||
|
|
Loading…
Reference in New Issue