mirror of
https://gitlab.com/MoonTestUse1/AdministrationItDepartmens.git
synced 2025-08-14 00:25:46 +02:00
Авторизация починка 5
This commit is contained in:
20
frontend/src/components/AddEmployeeButton.vue
Normal file
20
frontend/src/components/AddEmployeeButton.vue
Normal file
@@ -0,0 +1,20 @@
|
||||
<template>
|
||||
<button
|
||||
@click="openAddEmployeeModal"
|
||||
class="bg-blue-500 hover:bg-blue-600 text-white font-semibold py-2 px-4 rounded-lg flex items-center gap-2 transition-colors"
|
||||
>
|
||||
<PlusCircle class="w-5 h-5" />
|
||||
Добавить работника
|
||||
</button>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import { PlusCircle } from 'lucide-vue-next';
|
||||
import { useRouter } from 'vue-router';
|
||||
|
||||
const router = useRouter();
|
||||
|
||||
const openAddEmployeeModal = () => {
|
||||
router.push('/employees/add');
|
||||
};
|
||||
</script>
|
Reference in New Issue
Block a user