Skip to content

Commit

Permalink
fix: showing RichWorkspace for non-English language
Browse files Browse the repository at this point in the history
Signed-off-by: Luka Trovic <[email protected]>
  • Loading branch information
luka-nextcloud authored and juliusknorr committed Jan 3, 2025
1 parent 6702ab9 commit 50d850a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/views/RichWorkspace.vue
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,12 @@ import { subscribe, unsubscribe } from '@nextcloud/event-bus'
import { getSharingToken, isPublicShare } from '@nextcloud/sharing/public'
import getEditorInstance from '../components/Editor.singleton.js'
import RichTextReader from '../components/RichTextReader.vue'
import { loadState } from '@nextcloud/initial-state'

Check warning on line 35 in src/views/RichWorkspace.vue

View check run for this annotation

Codecov / codecov/patch

src/views/RichWorkspace.vue#L35

Added line #L35 was not covered by tests

const IS_PUBLIC = isPublicShare()
const WORKSPACE_URL = generateOcsUrl('apps/text' + (IS_PUBLIC ? '/public' : '') + '/workspace', 2)
const SUPPORTED_STATIC_FILENAMES = ['Readme.md', 'README.md', 'readme.md']
const descriptionFile = t('text', 'Readme') + '.' + loadState('text', 'default_file_extension')
const SUPPORTED_STATIC_FILENAMES = [descriptionFile, 'Readme.md', 'README.md', 'readme.md']

Check warning on line 40 in src/views/RichWorkspace.vue

View check run for this annotation

Codecov / codecov/patch

src/views/RichWorkspace.vue#L39-L40

Added lines #L39 - L40 were not covered by tests

export default {
name: 'RichWorkspace',
Expand Down

0 comments on commit 50d850a

Please sign in to comment.