logo

pleroma-fe

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

number_setting.vue (1093B)


  1. <template>
  2. <span
  3. v-if="matchesExpertLevel"
  4. class="NumberSetting"
  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. {{ ' ' }}
  19. <input
  20. :id="path"
  21. class="input number-input"
  22. type="number"
  23. :step="step || 1"
  24. :disabled="shouldBeDisabled"
  25. :min="min || 0"
  26. :value="realDraftMode ? draft :state"
  27. @change="update"
  28. >
  29. {{ ' ' }}
  30. <ModifiedIndicator
  31. :changed="isChanged"
  32. :onclick="reset"
  33. />
  34. <ProfileSettingIndicator :is-profile="isProfileSetting" />
  35. <DraftButtons />
  36. <p
  37. v-if="backendDescriptionDescription"
  38. class="setting-description"
  39. :class="{ 'faint': shouldBeDisabled }"
  40. >
  41. {{ backendDescriptionDescription + ' ' }}
  42. </p>
  43. </span>
  44. </template>
  45. <script src="./number_setting.js"></script>