Skip to content

Commit c643bb7

Browse files
kra-moAndyScherzinger
authored andcommitted
fix(FilesAppSettings): Add icons to default view
Signed-off-by: kramo <git@kramo.page>
1 parent 31d82bf commit c643bb7

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
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>

0 commit comments

Comments
 (0)