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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
2 additions and
4 deletions
-
frontend/components/example/FormDelete.vue
-
frontend/i18n/en/projects/dataset.js
|
|
@ -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')" |
|
|
|
/> |
|
|
|
|
|
@ -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}' |
|
|
|