logo

pleroma-fe

My custom branche(s) on git.pleroma.social/pleroma/pleroma-fe git clone https://anongit.hacktivis.me/git/pleroma-fe.git/

boolean_setting.vue (1030B)


  1. <template>
  2. <label
  3. v-if="matchesExpertLevel"
  4. class="BooleanSetting"
  5. >
  6. <Checkbox
  7. :model-value="visibleState"
  8. :disabled="shouldBeDisabled"
  9. :indeterminate="isIndeterminate"
  10. @update:modelValue="update"
  11. >
  12. <span
  13. class="label"
  14. :class="{ 'faint': shouldBeDisabled }"
  15. >
  16. <template v-if="backendDescriptionLabel">
  17. {{ backendDescriptionLabel }}
  18. </template>
  19. <template v-else-if="source === 'admin'">
  20. MISSING LABEL FOR {{ path }}
  21. </template>
  22. <slot v-else />
  23. </span>
  24. </Checkbox>
  25. <ModifiedIndicator
  26. :changed="isChanged"
  27. :onclick="reset"
  28. />
  29. <ProfileSettingIndicator :is-profile="isProfileSetting" />
  30. <DraftButtons />
  31. <p
  32. v-if="backendDescriptionDescription"
  33. class="setting-description"
  34. :class="{ 'faint': shouldBeDisabled }"
  35. >
  36. {{ backendDescriptionDescription + ' ' }}
  37. </p>
  38. </label>
  39. </template>
  40. <script src="./boolean_setting.js"></script>