Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ function getInitialSuite() {
return suite.id
}
}
return null
return OFFICE_SUITES.find((s) => s.isPrimary)?.id ?? null
}
/**
Expand Down
31 changes: 16 additions & 15 deletions apps/appstore/src/service/OfficeSuites.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,23 @@ import { t } from '@nextcloud/l10n'
export const OFFICE_SUITES = Object.freeze([
{
id: 'nextcloud-office',
appId: 'richdocuments',
appId: 'eurooffice',
name: 'Nextcloud Office',
features: [
t('settings', 'Powered by Euro-Office'),
t('settings', 'Good Nextcloud integration'),
t('settings', 'Open source'),
t('settings', 'Best performance'),
t('settings', 'Limited ODF compatibility'),
t('settings', 'Best Microsoft compatibility'),
],
learnMoreUrl: 'https://github.com/Euro-Office',
isPrimary: true,
},
{
id: 'collabora-office',
appId: 'richdocuments',
name: 'Collabora Office',
features: [
t('settings', 'Best Nextcloud integration'),
t('settings', 'Open source'),
Expand All @@ -19,20 +34,6 @@ export const OFFICE_SUITES = Object.freeze([
t('settings', 'Best support for legacy files'),
],
learnMoreUrl: 'https://nextcloud.com/collaboraonline/',
isPrimary: true,
},
{
id: 'onlyoffice',
appId: 'onlyoffice',
name: 'Onlyoffice',
features: [
t('settings', 'Good Nextcloud integration'),
t('settings', 'Open core'),
t('settings', 'Best performance'),
t('settings', 'Limited ODF compatibility'),
t('settings', 'Best Microsoft compatibility'),
],
learnMoreUrl: 'https://nextcloud.com/onlyoffice/',
isPrimary: false,
},
])
Expand Down
Loading