logo

pleroma-fe

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

number_setting.vue (1079B)


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