logo

pleroma-fe

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

confirm_modal.js (694B)


  1. import DialogModal from '../dialog_modal/dialog_modal.vue'
  2. /**
  3. * This component emits the following events:
  4. * cancelled, emitted when the action should not be performed;
  5. * accepted, emitted when the action should be performed;
  6. *
  7. * The caller should close this dialog after receiving any of the two events.
  8. */
  9. const ConfirmModal = {
  10. components: {
  11. DialogModal
  12. },
  13. props: {
  14. title: {
  15. type: String
  16. },
  17. cancelText: {
  18. type: String
  19. },
  20. confirmText: {
  21. type: String
  22. }
  23. },
  24. computed: {
  25. },
  26. methods: {
  27. onCancel () {
  28. this.$emit('cancelled')
  29. },
  30. onAccept () {
  31. this.$emit('accepted')
  32. }
  33. }
  34. }
  35. export default ConfirmModal