Skip to content

Commit

Permalink
fix: Move settings to use NcCheckboxRadioSwitch (#6178)
Browse files Browse the repository at this point in the history
Signed-off-by: Julius Härtl <[email protected]>
  • Loading branch information
juliusknorr authored Aug 6, 2024
1 parent f78c020 commit 0849ad3
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions src/views/FilesSettings.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,23 @@
-->
<template>
<div id="files-setting-richworkspace">
<input id="showRichWorkspacesToggle"
v-model="showWorkspace"
class="checkbox"
type="checkbox"
@change="toggle">
<label for="showRichWorkspacesToggle">{{ t('text', 'Show folder description') }}</label>
<NcCheckboxRadioSwitch :checked.sync="showWorkspace" @update:checked="toggle">
{{ t('text', 'Show folder description') }}
</NcCheckboxRadioSwitch>
</div>
</template>

<script>
import { emit } from '@nextcloud/event-bus'
import axios from '@nextcloud/axios'
import { NcCheckboxRadioSwitch } from '@nextcloud/vue'
import { generateUrl } from '@nextcloud/router'

export default {
name: 'FilesSettings',
components: {
NcCheckboxRadioSwitch,
},
data() {
return {
showWorkspace: OCA.Text.RichWorkspaceEnabled,
Expand Down

0 comments on commit 0849ad3

Please sign in to comment.