aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/components/settings_modal/helpers/attachment_setting.vue5
-rw-r--r--src/components/settings_modal/helpers/boolean_setting.vue16
-rw-r--r--src/components/settings_modal/helpers/number_setting.vue5
-rw-r--r--src/components/settings_modal/helpers/string_setting.vue5
4 files changed, 22 insertions, 9 deletions
diff --git a/src/components/settings_modal/helpers/attachment_setting.vue b/src/components/settings_modal/helpers/attachment_setting.vue
index 0bede2c2..447fa172 100644
--- a/src/components/settings_modal/helpers/attachment_setting.vue
+++ b/src/components/settings_modal/helpers/attachment_setting.vue
@@ -10,9 +10,10 @@
<template v-if="backendDescriptionLabel">
{{ backendDescriptionLabel + ' ' }}
</template>
- <template v-else>
- <slot />
+ <template v-else-if="source === 'admin'">
+ MISSING LABEL FOR {{ path }}
</template>
+ <slot v-else />
</label>
<p
diff --git a/src/components/settings_modal/helpers/boolean_setting.vue b/src/components/settings_modal/helpers/boolean_setting.vue
index 3089c3b3..5ddf5aad 100644
--- a/src/components/settings_modal/helpers/boolean_setting.vue
+++ b/src/components/settings_modal/helpers/boolean_setting.vue
@@ -10,16 +10,16 @@
@update:modelValue="update"
>
<span
- v-if="!!$slots.default"
class="label"
:class="{ 'faint': shouldBeDisabled }"
>
<template v-if="backendDescriptionLabel">
{{ backendDescriptionLabel }}
</template>
- <template v-else>
- <slot />
+ <template v-else-if="source === 'admin'">
+ MISSING LABEL FOR {{ path }}
</template>
+ <slot v-else />
</span>
</Checkbox>
<ModifiedIndicator
@@ -35,6 +35,16 @@
>
{{ backendDescriptionDescription + ' ' }}
</p>
+ <!-- debugging -->
+ <!--
+ <p
+ v-else
+ class="setting-description"
+ :class="{ 'faint': shouldBeDisabled }"
+ >
+ MISSING DESCRIPTION FOR {{ path }}
+ </p>
+ -->
</label>
</template>
diff --git a/src/components/settings_modal/helpers/number_setting.vue b/src/components/settings_modal/helpers/number_setting.vue
index 065cfbcf..93f11331 100644
--- a/src/components/settings_modal/helpers/number_setting.vue
+++ b/src/components/settings_modal/helpers/number_setting.vue
@@ -10,9 +10,10 @@
<template v-if="backendDescriptionLabel">
{{ backendDescriptionLabel + ' ' }}
</template>
- <template v-else>
- <slot />
+ <template v-else-if="source === 'admin'">
+ MISSING LABEL FOR {{ path }}
</template>
+ <slot v-else />
</label>
<input
:id="path"
diff --git a/src/components/settings_modal/helpers/string_setting.vue b/src/components/settings_modal/helpers/string_setting.vue
index 9de99d78..0cfa61ce 100644
--- a/src/components/settings_modal/helpers/string_setting.vue
+++ b/src/components/settings_modal/helpers/string_setting.vue
@@ -10,9 +10,10 @@
<template v-if="backendDescriptionLabel">
{{ backendDescriptionLabel + ' ' }}
</template>
- <template v-else>
- <slot />
+ <template v-else-if="source === 'admin'">
+ MISSING LABEL FOR {{ path }}
</template>
+ <slot v-else />
</label>
<input
:id="path"