logo

pleroma-fe

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

string_setting.vue (1058B)


  1. <template>
  2. <label
  3. v-if="matchesExpertLevel"
  4. class="StringSetting"
  5. >
  6. <label
  7. :for="path"
  8. class="setting-label"
  9. :class="{ 'faint': shouldBeDisabled }"
  10. >
  11. <template v-if="backendDescriptionLabel">
  12. {{ backendDescriptionLabel + ' ' }}
  13. </template>
  14. <template v-else-if="source === 'admin'">
  15. MISSING LABEL FOR {{ path }}
  16. </template>
  17. <slot v-else />
  18. </label>
  19. {{ ' ' }}
  20. <input
  21. :id="path"
  22. class="input string-input"
  23. :disabled="shouldBeDisabled"
  24. :value="realDraftMode ? draft : state"
  25. @change="update"
  26. >
  27. {{ ' ' }}
  28. <ModifiedIndicator
  29. :changed="isChanged"
  30. :onclick="reset"
  31. />
  32. <ProfileSettingIndicator :is-profile="isProfileSetting" />
  33. <DraftButtons />
  34. <p
  35. v-if="backendDescriptionDescription"
  36. class="setting-description"
  37. :class="{ 'faint': shouldBeDisabled }"
  38. >
  39. {{ backendDescriptionDescription + ' ' }}
  40. </p>
  41. </label>
  42. </template>
  43. <script src="./string_setting.js"></script>