Skip to content

Commit 0ec75ef

Browse files
Merge pull request #57296 from nextcloud/fix/add-icons-to-settings
fix(FilesAppSettings): Add icons to default view
2 parents 31d82bf + 6d978db commit 0ec75ef

File tree

77 files changed

+126
-116
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

77 files changed

+126
-116
lines changed

apps/files/src/components/FilesAppSettings/FilesAppSettingsGeneral.vue

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,12 @@
44
-->
55

66
<script setup lang="ts">
7+
import { mdiAccountOutline, mdiFolderOutline } from '@mdi/js'
78
import { t } from '@nextcloud/l10n'
89
import NcAppSettingsSection from '@nextcloud/vue/components/NcAppSettingsSection'
910
import NcFormBox from '@nextcloud/vue/components/NcFormBox'
1011
import NcFormBoxSwitch from '@nextcloud/vue/components/NcFormBoxSwitch'
12+
import NcIconSvgWrapper from '@nextcloud/vue/components/NcIconSvgWrapper'
1113
import NcRadioGroup from '@nextcloud/vue/components/NcRadioGroup'
1214
import NcRadioGroupButton from '@nextcloud/vue/components/NcRadioGroupButton'
1315
import { useUserConfigStore } from '../../store/userconfig.ts'
@@ -37,8 +39,16 @@ const store = useUserConfigStore()
3739
v-model="store.userConfig.default_view"
3840
:label="t('files', 'Default view')"
3941
@update:modelValue="store.update('default_view', $event)">
40-
<NcRadioGroupButton :label="t('files', 'All files')" value="files" />
41-
<NcRadioGroupButton :label="t('files', 'Personal files')" value="personal" />
42+
<NcRadioGroupButton :label="t('files', 'All files')" value="files">
43+
<template #icon>
44+
<NcIconSvgWrapper :path="mdiFolderOutline" />
45+
</template>
46+
</NcRadioGroupButton>
47+
<NcRadioGroupButton :label="t('files', 'Personal files')" value="personal">
48+
<template #icon>
49+
<NcIconSvgWrapper :path="mdiAccountOutline" />
50+
</template>
51+
</NcRadioGroupButton>
4252
</NcRadioGroup>
4353
</NcAppSettingsSection>
4454
</template>

dist/1546-1546.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/1546-1546.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/4325-4325.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/4325-4325.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/comments-comments-app.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/comments-comments-app.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/comments-comments-tab.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/comments-comments-tab.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/core-legacy-unified-search.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)