chore: display tag title as string in delete dialog (#2904)

This commit is contained in:
Antonella Sgarlatta
2025-06-18 11:55:58 -03:00
committed by GitHub
parent 974fcef288
commit e2250600a8
4 changed files with 26 additions and 11 deletions

View File

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