ShareLinks.vue 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. <template>
  2. <div class="text-left">
  3. <p class="mt-2 text-gray-300">Share your error with others:</p>
  4. <div class="grid cols-auto items-center justify-start gap-2 mt-2">
  5. <a
  6. :href="publicUrl"
  7. target="_blank"
  8. class="button-secondary button-sm bg-tint-600 hover:bg-tint-700 text-white"
  9. >Open public share</a
  10. >
  11. <CopyButton :text="publicUrl"> </CopyButton>
  12. </div>
  13. <p class="mt-4 text-gray-300">Administer your shared error here:</p>
  14. <div class="grid cols-auto items-center justify-start gap-2 mt-2">
  15. <a
  16. :href="ownerUrl"
  17. target="_blank"
  18. class="button-secondary button-sm bg-tint-600 hover:bg-tint-700 text-white"
  19. >Open share admin</a
  20. >
  21. <CopyButton :text="ownerUrl"> </CopyButton>
  22. </div>
  23. </div>
  24. </template>
  25. <script>
  26. import CopyButton from './CopyButton';
  27. export default {
  28. components: { CopyButton },
  29. props: {
  30. publicUrl: { required: true },
  31. ownerUrl: { required: true },
  32. },
  33. };
  34. </script>