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.

52 lines
1.2 KiB

  1. <template lang="pug">
  2. .editor
  3. editor-code
  4. component(:is='currentModal')
  5. v-dialog(v-model='dialogProgress', persistent, max-width='300')
  6. v-card
  7. v-progress-linear.my-0(indeterminate, color='primary', height='5')
  8. v-card-text.text-xs-center
  9. .headline Saving
  10. .caption Please wait...
  11. </template>
  12. <script>
  13. import _ from 'lodash'
  14. export default {
  15. components: {
  16. editorCode: () => import(/* webpackChunkName: "editor-code" */ './editor-code.vue'),
  17. editorModalAccess: () => import(/* webpackChunkName: "editor-common" */ './editor-modal-access.vue'),
  18. editorModalProperties: () => import(/* webpackChunkName: "editor-common" */ './editor-modal-properties.vue')
  19. },
  20. data() {
  21. return {
  22. currentModal: '',
  23. dialogProgress: false
  24. }
  25. },
  26. methods: {
  27. openModal(name) {
  28. this.currentModal = `editorModal${_.startCase(name)}`
  29. },
  30. closeModal() {
  31. _.delay(() => {
  32. this.currentModal = ``
  33. }, 500)
  34. },
  35. showProgressDialog(textKey) {
  36. this.dialogProgress = true
  37. },
  38. hideProgressDialog() {
  39. this.dialogProgress = false
  40. },
  41. save() {
  42. this.showProgressDialog('saving')
  43. }
  44. }
  45. }
  46. </script>
  47. <style lang='scss'>
  48. </style>