Skip to content

Commit

Permalink
Merge pull request #1584 from doccano/enhancement/1077
Browse files Browse the repository at this point in the history
Show number of deleting rows only in confirm dialog
  • Loading branch information
Hironsan committed Dec 3, 2021
2 parents 3350fd1 + fb7a335 commit 43d994d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions frontend/components/example/FormDelete.vue
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
<template>
<confirm-form
:items="selected"
:title="$t('dataset.deleteDocumentsTitle')"
:message="$t('dataset.deleteDocumentsMessage')"
:item-key="itemKey"
:message="$t('dataset.deleteDocumentsMessage', { 'number': selected.length })"
@ok="$emit('remove')"
@cancel="$emit('cancel')"
/>
Expand Down
2 changes: 1 addition & 1 deletion frontend/i18n/en/projects/dataset.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export default {
exportDataMessage: 'Select a file format',
exportDataMessage2: 'Select a file name',
deleteDocumentsTitle: 'Delete Document',
deleteDocumentsMessage: 'Are you sure you want to delete these documents from this project?',
deleteDocumentsMessage: 'Are you sure you want to delete {number} items from this project?',
deleteBulkDocumentsTitle: 'Delete All Documents',
deleteBulkDocumentsMessage: 'Are you sure you want to delete all documents from this project?',
pageText: '{0}-{1} of {2}'
Expand Down

0 comments on commit 43d994d

Please sign in to comment.