logo

pleroma-fe

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

async_component_error.vue (695B)


  1. <template>
  2. <div class="async-component-error">
  3. <div>
  4. <h4>
  5. {{ $t('general.generic_error') }}
  6. </h4>
  7. <p>
  8. {{ $t('general.error_retry') }}
  9. </p>
  10. <button
  11. class="btn button-default"
  12. @click="retry"
  13. >
  14. {{ $t('general.retry') }}
  15. </button>
  16. </div>
  17. </div>
  18. </template>
  19. <script>
  20. export default {
  21. emits: ['resetAsyncComponent'],
  22. methods: {
  23. retry () {
  24. this.$emit('resetAsyncComponent')
  25. }
  26. }
  27. }
  28. </script>
  29. <style lang="scss">
  30. .async-component-error {
  31. display: flex;
  32. height: 100%;
  33. align-items: center;
  34. justify-content: center;
  35. .btn {
  36. margin: 0.5em;
  37. padding: 0.5em 2em;
  38. }
  39. }
  40. </style>