aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorJohn Molakvoæ <skjnldsv@users.noreply.github.com>2024-11-12 10:35:35 +0100
committerGitHub <noreply@github.com>2024-11-12 10:35:35 +0100
commit6ee525f91e89d196cb3d5548fd851de3a05cc75c (patch)
treeac6539d94b71010608bdd8ad7b9bc6db25961eba /apps
parente5e56eb95c08bc9f61c293bff3e7e4af11e5200f (diff)
parent68c4c4b9537cece1bde155531ea58d91d4fbc02c (diff)
downloadnextcloud-server-6ee525f91e89d196cb3d5548fd851de3a05cc75c.tar.gz
nextcloud-server-6ee525f91e89d196cb3d5548fd851de3a05cc75c.zip
Merge pull request #49162 from nextcloud/backport/49150/stable29
Diffstat (limited to 'apps')
-rw-r--r--apps/files/src/actions/editLocallyAction.ts15
1 files changed, 7 insertions, 8 deletions
diff --git a/apps/files/src/actions/editLocallyAction.ts b/apps/files/src/actions/editLocallyAction.ts
index 38393b919d5..de1fa7f26b0 100644
--- a/apps/files/src/actions/editLocallyAction.ts
+++ b/apps/files/src/actions/editLocallyAction.ts
@@ -26,9 +26,8 @@ import { FileAction, Permission, type Node } from '@nextcloud/files'
import { showError, DialogBuilder } from '@nextcloud/dialogs'
import { translate as t } from '@nextcloud/l10n'
import axios from '@nextcloud/axios'
+import IconWeb from '@mdi/svg/svg/web.svg?raw'
import LaptopSvg from '@mdi/svg/svg/laptop.svg?raw'
-import IconCancel from '@mdi/svg/svg/cancel.svg?raw'
-import IconCheck from '@mdi/svg/svg/check.svg?raw'
const confirmLocalEditDialog = (
localEditCallback: (openingLocally: boolean) => void = () => {},
@@ -37,23 +36,23 @@ const confirmLocalEditDialog = (
return (new DialogBuilder())
.setName(t('files', 'Edit file locally'))
- .setText(t('files', 'The file should now open locally. If you don\'t see this happening, make sure that the desktop client is installed on your system.'))
+ .setText(t('files', 'The file should now open on your device. If it doesn\'t, please check that you have the desktop app installed.'))
.setButtons([
{
- label: t('files', 'Retry local edit'),
- icon: IconCancel,
+ label: t('files', 'Retry and close'),
+ type: 'secondary',
callback: () => {
callbackCalled = true
- localEditCallback(false)
+ localEditCallback(true)
},
},
{
label: t('files', 'Edit online'),
- icon: IconCheck,
+ icon: IconWeb,
type: 'primary',
callback: () => {
callbackCalled = true
- localEditCallback(true)
+ localEditCallback(false)
},
},
])