chore: display tag title as string in delete dialog (#2904)
This commit is contained in:
committed by
GitHub
parent
974fcef288
commit
e2250600a8
@@ -168,7 +168,7 @@ export class FilesController extends AbstractViewController<FilesControllerEvent
|
||||
|
||||
deleteFile = async (file: FileItem) => {
|
||||
const shouldDelete = await confirmDialog({
|
||||
text: `Are you sure you want to permanently delete "${file.name}"?`,
|
||||
text: StringUtils.deleteFile(file.name),
|
||||
confirmButtonStyle: 'danger',
|
||||
})
|
||||
if (shouldDelete) {
|
||||
@@ -440,7 +440,7 @@ export class FilesController extends AbstractViewController<FilesControllerEvent
|
||||
`This file exceeds the limits supported in this browser. To upload files greater than ${
|
||||
this.maxFileSize / BYTES_IN_ONE_MEGABYTE
|
||||
}MB, please use the desktop application or the Chrome browser.`,
|
||||
`Cannot upload file "${file.name}"`,
|
||||
StringUtils.cannotUploadFile(file.name),
|
||||
)
|
||||
.catch(console.error)
|
||||
return true
|
||||
|
||||
Reference in New Issue
Block a user