feat(settings): add settings component for inputs

This commit is contained in:
2026-07-28 20:08:34 +02:00
committed by jakob.scheid
parent a0a9cac244
commit 25d7ee0c6d
2 changed files with 125 additions and 0 deletions
@@ -16,6 +16,7 @@ limitations under the License.
<script setup>
import Switch from './Switch.vue';
import SettingsInput from './SettingsInput.vue';
import { useI18n } from 'vue-i18n';
import { getSectionHeadingLevel } from '../utils/getSectionHeadingLevel.js';
@@ -46,6 +47,11 @@ const props = defineProps({
:setting="setting"
:path="`${props.path}.${setting.name}`"
/>
<SettingsInput
v-if="setting.type === 'string' || setting.type === 'number'"
:setting="setting"
:path="`${props.path}.${setting.name}`"
/>
</div>
</div>
</template>