Skip to content
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
fix: use NcCheckboxRadioSwitch in settings
Signed-off-by: skjnldsv <[email protected]>
  • Loading branch information
skjnldsv committed Nov 12, 2024
commit c1d71834bc29fbb9c30435b9fceb26aa0c6b80a2
14 changes: 7 additions & 7 deletions src/components/Settings.vue
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
<template>
<div id="recommendations-setting-enabled">
<input id="recommendationsEnabledToggle"
v-model="enabled"
class="checkbox"
checked="checked"
type="checkbox"
name="enabled">
<label for="recommendationsEnabledToggle">{{ t('recommendations', 'Show recommendations') }}</label>
<NcCheckboxRadioSwitch id="recommendationsEnabledToggle" :checked.sync="enabled">
{{ t('recommendations', 'Show recommendations') }}
</NcCheckboxRadioSwitch>
</div>
</template>

<script>
import { NcCheckboxRadioSwitch } from '@nextcloud/vue'
import { translate as t } from '@nextcloud/l10n'

export default {
name: 'Settings',
components: {
NcCheckboxRadioSwitch,
},
computed: {
enabled: {
get() {
Expand Down