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 (1016B)


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