edit-meta: warn user for stack edit
Signed-off-by: Varun Patil <radialapps@gmail.com>pull/900/head
parent
5e4b963379
commit
bf6127493e
|
@ -50,6 +50,8 @@
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { defineComponent } from 'vue';
|
import { defineComponent } from 'vue';
|
||||||
|
|
||||||
|
import { showWarning } from '@nextcloud/dialogs';
|
||||||
|
|
||||||
import NcButton from '@nextcloud/vue/dist/Components/NcButton';
|
import NcButton from '@nextcloud/vue/dist/Components/NcButton';
|
||||||
const NcTextField = () => import('@nextcloud/vue/dist/Components/NcTextField');
|
const NcTextField = () => import('@nextcloud/vue/dist/Components/NcTextField');
|
||||||
const NcProgressBar = () => import('@nextcloud/vue/dist/Components/NcProgressBar');
|
const NcProgressBar = () => import('@nextcloud/vue/dist/Components/NcProgressBar');
|
||||||
|
@ -151,6 +153,11 @@ export default defineComponent({
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Warn user if any raw stacks are present
|
||||||
|
if (valid.some((p) => p.stackraw?.length)) {
|
||||||
|
showWarning(this.t('memories', 'Some selected items have stacked RAW files.\nRAW files will not be edited.'));
|
||||||
|
}
|
||||||
|
|
||||||
this.photos = valid;
|
this.photos = valid;
|
||||||
this.processing = false;
|
this.processing = false;
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue