Skip to content

Commit

Permalink
edit-meta: warn user for stack edit
Browse files Browse the repository at this point in the history
Signed-off-by: Varun Patil <radialapps@gmail.com>
  • Loading branch information
pulsejet committed Oct 30, 2023
1 parent 5e4b963 commit bf61274
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/components/modal/EditMetadataModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down Expand Up @@ -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;
},
Expand Down

0 comments on commit bf61274

Please sign in to comment.