make dialog (attachment, file exists) translatable (#1079)
* make dialog (attachment, file exists) translatable Dialog (attachment, file exists) translatable Signed-off-by: Markus Eckstein eckstein-markus@gmx.de * Commit suggestion Signed-off-by: Markus Eckstein eckstein-markus@gmx.de Co-Authored-By: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
@@ -80,8 +80,8 @@ export default class FileService {
|
|||||||
});
|
});
|
||||||
if (typeof existingFile !== 'undefined') {
|
if (typeof existingFile !== 'undefined') {
|
||||||
OC.dialogs.confirm(
|
OC.dialogs.confirm(
|
||||||
`A file with the name ${fileItem.file.name} already exists. Do you want to overwrite it?`,
|
t('deck', `A file with the name ${fileItem.file.name} already exists. Do you want to overwrite it?`),
|
||||||
'File already exists',
|
t('deck', 'File already exists'),
|
||||||
function (result) {
|
function (result) {
|
||||||
if (result) {
|
if (result) {
|
||||||
self.runUpload(fileItem, existingFile.id);
|
self.runUpload(fileItem, existingFile.id);
|
||||||
|
|||||||
Reference in New Issue
Block a user