edit-meta: warn user for stack edit

Signed-off-by: Varun Patil <radialapps@gmail.com>
pull/900/head
Varun Patil 2023-10-30 12:39:46 -07:00
parent 5e4b963379
commit bf6127493e
1 changed files with 7 additions and 0 deletions

View File

@ -50,6 +50,8 @@
<script lang="ts">
import { defineComponent } from 'vue';
import { showWarning } from '@nextcloud/dialogs';
import NcButton from '@nextcloud/vue/dist/Components/NcButton';
const NcTextField = () => import('@nextcloud/vue/dist/Components/NcTextField');
const NcProgressBar = () => import('@nextcloud/vue/dist/Components/NcProgressBar');
@ -151,6 +153,11 @@ export default defineComponent({
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.processing = false;
},