Browse Source

Merge pull request #1584 from doccano/enhancement/1077

Show number of deleting rows only in confirm dialog
pull/1585/head v1.5.5
Hiroki Nakayama 3 years ago
committed by GitHub
parent
commit
43d994dfc1
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 4 deletions
  1. 4
      frontend/components/example/FormDelete.vue
  2. 2
      frontend/i18n/en/projects/dataset.js

4
frontend/components/example/FormDelete.vue

@ -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')"
/>

2
frontend/i18n/en/projects/dataset.js

@ -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}'

Loading…
Cancel
Save