diff --git a/src/components/CanvasComponent.vue b/src/components/CanvasComponent.vue new file mode 100644 index 00000000..29ce301c --- /dev/null +++ b/src/components/CanvasComponent.vue @@ -0,0 +1,143 @@ + + + diff --git a/src/layouts/MainLayout.vue b/src/layouts/MainLayout.vue index e49dc41f..a795588d 100644 --- a/src/layouts/MainLayout.vue +++ b/src/layouts/MainLayout.vue @@ -13,7 +13,9 @@ import { useI18n } from 'vue-i18n'; import useLoader from 'stores/loader'; import DrawerComponent from 'components/DrawerComponent.vue'; +import CanvasComponent from 'components/CanvasComponent.vue'; import useUserStore from 'src/stores/user'; +import FormDialog from 'src/components/FormDialog.vue'; import { Option } from 'src/stores/user/types'; import { dialog } from 'src/stores/utils'; @@ -37,12 +39,13 @@ const { visible } = storeToRefs(loaderStore); const { locale } = useI18n({ useScope: 'global' }); const userStore = useUserStore(); +const canvasModal = ref(false); const leftDrawerOpen = ref(false); const filterUnread = ref(false); const unread = ref(1); const filterRole = ref(); const userImage = ref(); - +const canvasRef = ref(); const currentLanguage = ref('ไทย'); const language: { value: string; @@ -89,10 +92,16 @@ const notification = ref([ const options = ref([ { icon: 'mdi-lock-outline', - label: 'เปลี่ยนรหัสผ่าน', + label: 'changePassword', value: 'op1', color: 'primary', }, + { + icon: 'mdi-signature-freehand', + label: 'signature', + value: 'signature', + color: 'primary', + }, ]); function setActive(button: NotificationButton) { @@ -343,12 +352,21 @@ onMounted(async () => {
- + - {{ op.label }} + {{ $t(op.label) }} @@ -376,7 +394,7 @@ onMounted(async () => { style="color: var(--gray-6)" @click="$q.dark.toggle()" /> - + { + + + + +