Feat(settings): add renderer for settings configuration #142

Merged
jakob.scheid merged 88 commits from feature/settings-renderer into main 2026-07-28 20:14:50 +02:00
Showing only changes of commit 641cc4956d - Show all commits
1
@@ -56,7 +56,7 @@ const store = useSettingsStore();
const optionType = computed(() => props.setting.allowMultiple ? 'checkbox' : 'radio'); const optionType = computed(() => props.setting.allowMultiple ? 'checkbox' : 'radio');
const selected = ref(normalizeSelectedValue(store.get(props.path) ?? props.setting.default)); const selected = ref(normalizeSelectedValue(store.get(props.path) ?? props.setting.default));
watch(selected, (newValue, oldValue) => { watch(selected, (newValue) => {
jakob.scheid marked this conversation as resolved Outdated
Outdated
Review

The oldValue parameter is not necessary.

The `oldValue` parameter is not necessary.
store.set(props.path, newValue); store.set(props.path, newValue);
}); });
</script> </script>
2