aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorskjnldsv <skjnldsv@protonmail.com>2024-11-08 11:44:16 +0100
committerskjnldsv <skjnldsv@protonmail.com>2024-11-08 11:46:30 +0100
commitce4261a5bd20af232ea798d42b6a6f88785a87fa (patch)
tree159321f2a4fa8801f1db332df2d05b92deb32c2a
parentdc7d78961662982faffb87bd41dba114e4dc6f9a (diff)
downloadnextcloud-server-fix/edit-locally-labels.tar.gz
nextcloud-server-fix/edit-locally-labels.zip
fix(files): edit locally buttonsfix/edit-locally-labels
Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
-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 ae35b0ca409..72770e9de70 100644
--- a/apps/files/src/actions/editLocallyAction.ts
+++ b/apps/files/src/actions/editLocallyAction.ts
@@ -10,8 +10,7 @@ import { showError, DialogBuilder } from '@nextcloud/dialogs'
import { translate as t } from '@nextcloud/l10n'
import axios from '@nextcloud/axios'
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'
+import IconWeb from '@mdi/svg/svg/web.svg?raw'
import { isPublicShare } from '@nextcloud/sharing/public'
const confirmLocalEditDialog = (
@@ -21,23 +20,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)
},
},
])