logo

pleroma-fe

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

choice_setting.vue (1016B)


  1. <template>
  2. <label
  3. v-if="matchesExpertLevel"
  4. class="ChoiceSetting"
  5. >
  6. <template v-if="backendDescriptionLabel">
  7. {{ backendDescriptionLabel }}
  8. </template>
  9. <template v-else>
  10. <slot />
  11. </template>
  12. {{ ' ' }}
  13. <Select
  14. :model-value="realDraftMode ? draft :state"
  15. :disabled="disabled"
  16. @update:modelValue="update"
  17. >
  18. <option
  19. v-for="option in realOptions"
  20. :key="option.key"
  21. :value="option.value"
  22. >
  23. {{ option.label }}
  24. {{ option.value === defaultState ? $t('settings.instance_default_simple') : '' }}
  25. </option>
  26. </Select>
  27. <ModifiedIndicator
  28. :changed="isChanged"
  29. :onclick="reset"
  30. />
  31. <ProfileSettingIndicator :is-profile="isProfileSetting" />
  32. <DraftButtons />
  33. <p
  34. v-if="backendDescriptionDescription"
  35. class="setting-description"
  36. >
  37. {{ backendDescriptionDescription + ' ' }}
  38. </p>
  39. </label>
  40. </template>
  41. <script src="./choice_setting.js"></script>