Skip to content

Commit

Permalink
fix(files): edit locally buttons
Browse files Browse the repository at this point in the history
Signed-off-by: skjnldsv <[email protected]>
  • Loading branch information
skjnldsv committed Nov 8, 2024
1 parent dc7d789 commit ce4261a
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions apps/files/src/actions/editLocallyAction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 = (
Expand All @@ -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)
},
},
])
Expand Down

0 comments on commit ce4261a

Please sign in to comment.