You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

48 lines
1.4 KiB

3 years ago
  1. <app-note>
  2. <div class="note">
  3. <div class="panel">
  4. <div class="bar">
  5. <div class="bar__end w-100">
  6. <button class="button button--transparent" onclick={ (event) => { handleEdit(event, note) } }>
  7. <svg class="icon fill-text-contrast" aria-hidden="true">
  8. <use xlink:href="/symbol-defs.svg#icon-edit"></use>
  9. </svg>
  10. </button>
  11. <button class="button button--transparent" onclick={ (event) => { handleDelete(event, note) } }>
  12. <svg class="icon fill-text-contrast" aria-hidden="true">
  13. <use xlink:href="/symbol-defs.svg#icon-delete"></use>
  14. </svg>
  15. </button>
  16. </div>
  17. </div>
  18. <div class="note__title">
  19. <h3>
  20. { state.note.title }
  21. </h3>
  22. </div>
  23. <div class="panel__body">
  24. { state.note.content }
  25. </div>
  26. </div>
  27. </div>
  28. <script>
  29. import axios from 'axios'
  30. import remove from 'lodash.remove'
  31. /**
  32. *
  33. *
  34. *
  35. * @author Björn Hase
  36. *
  37. */
  38. export default {
  39. state: {
  40. note: undefined
  41. }
  42. }
  43. </script>
  44. </app-note>