Skip to content

Commit ce4261a

Browse files
committed
fix(files): edit locally buttons
Signed-off-by: skjnldsv <[email protected]>
1 parent dc7d789 commit ce4261a

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

apps/files/src/actions/editLocallyAction.ts

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@ import { showError, DialogBuilder } from '@nextcloud/dialogs'
1010
import { translate as t } from '@nextcloud/l10n'
1111
import axios from '@nextcloud/axios'
1212
import LaptopSvg from '@mdi/svg/svg/laptop.svg?raw'
13-
import IconCancel from '@mdi/svg/svg/cancel.svg?raw'
14-
import IconCheck from '@mdi/svg/svg/check.svg?raw'
13+
import IconWeb from '@mdi/svg/svg/web.svg?raw'
1514
import { isPublicShare } from '@nextcloud/sharing/public'
1615

1716
const confirmLocalEditDialog = (
@@ -21,23 +20,23 @@ const confirmLocalEditDialog = (
2120

2221
return (new DialogBuilder())
2322
.setName(t('files', 'Edit file locally'))
24-
.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.'))
23+
.setText(t('files', 'The file should now open on your device. If it doesn\'t, please check that you have the desktop app installed.'))
2524
.setButtons([
2625
{
27-
label: t('files', 'Retry local edit'),
28-
icon: IconCancel,
26+
label: t('files', 'Retry and close'),
27+
type: 'secondary',
2928
callback: () => {
3029
callbackCalled = true
31-
localEditCallback(false)
30+
localEditCallback(true)
3231
},
3332
},
3433
{
3534
label: t('files', 'Edit online'),
36-
icon: IconCheck,
35+
icon: IconWeb,
3736
type: 'primary',
3837
callback: () => {
3938
callbackCalled = true
40-
localEditCallback(true)
39+
localEditCallback(false)
4140
},
4241
},
4342
])

0 commit comments

Comments
 (0)