diff --git a/app/public/mock/v1/master-tasks.GET.json b/app/public/mock/v1/master-tasks.GET.json
new file mode 100644
index 0000000..7460d9b
--- /dev/null
+++ b/app/public/mock/v1/master-tasks.GET.json
@@ -0,0 +1,112 @@
+{
+ "data": [
+ {
+ "id": 1,
+ "name": "Master task 1",
+ "description": "Toto je master task cislo 1",
+ "duration": 130000,
+ "time_worked": 0,
+ "is_finished": false,
+ "starts_at": "2022-05-10T00:00:00+00:00",
+ "deadline": "2022-11-10T00:00:00+00:00",
+ "project_code": "CO-2201",
+ "team_id": 1,
+ "employees": [
+ {
+ "id": 1,
+ "duration": 1300000,
+ "name": "Viliam",
+ "surname": "Sedivy"
+ },
+
+ {
+ "id": 4,
+ "duration": 1000000,
+ "name": "Pavel",
+ "surname": "Gajdos"
+ },
+
+ {
+ "id": 5,
+ "duration": 3100000,
+ "name": "Francesca",
+ "surname": "Spinelli"
+ }
+ ],
+ "files": []
+
+ },
+ {
+ "id": 2,
+ "name": "Master task cislo 2",
+ "description": "Toto je master task cislo 2",
+ "duration": 100000,
+ "time_worked": 0,
+ "is_finished": false,
+ "starts_at": "2022-03-10T00:00:00+00:00",
+ "deadline": "2022-11-10T00:00:00+00:00",
+ "project_code": "CO-2202",
+ "team_id": 1,
+ "employees": [
+ {
+ "id": 2,
+ "duration": 1300000,
+ "name": "Simona",
+ "surname": "Tremkova"
+ },
+
+ {
+ "id": 3,
+ "duration": 1000000,
+ "name": "Matej",
+ "surname": "Macho"
+ }
+ ],
+ "files": []
+
+ },
+ {
+ "id": 3,
+ "name": "Master task cislo 3",
+ "description": "Toto je master task cislo 3",
+ "duration": 9500000,
+ "time_worked": 0,
+ "is_finished": false,
+ "starts_at": "2022-05-10T00:00:00+00:00",
+ "deadline": "2022-11-10T00:00:00+00:00",
+ "project_code": "CO-2203",
+ "team_id": 1,
+ "employees": [
+ {
+ "id": 1,
+ "duration": 1300000,
+ "name": "Rastislav",
+ "surname": "Kuttner"
+ },
+
+ {
+ "id": 6,
+ "duration": 1000000,
+ "name": "Lenka",
+ "surname": "Nemeckova"
+ },
+
+ {
+ "id": 7,
+ "duration": 3100000,
+ "name": "Peter",
+ "surname": "Bucan"
+ },
+ {
+ "id": 9,
+ "duration": 3200000,
+ "name": "Viliam",
+ "surname": "Sedivy"
+ }
+ ],
+ "files": []
+
+ }
+ ],
+ "status": 200
+}
\ No newline at end of file
diff --git a/app/src/plugins/app/_config/main.ts b/app/src/plugins/app/_config/main.ts
index 09762de..45603f7 100644
--- a/app/src/plugins/app/_config/main.ts
+++ b/app/src/plugins/app/_config/main.ts
@@ -48,6 +48,7 @@ const options: Options = {
'POST v1/auth/post': true,
'GET v1/master-tasks/(id)': true,
+ 'GET v1/master-tasks': true,
'POST v1/master-tasks/(id)': true,
'DELETE v1/master-tasks/(id)': true,
'POST v1/master-tasks': true,
diff --git a/app/src/plugins/app/_layout/app/_components/a-header.vue b/app/src/plugins/app/_layout/app/_components/a-header.vue
index 8165394..aa7dc94 100644
--- a/app/src/plugins/app/_layout/app/_components/a-header.vue
+++ b/app/src/plugins/app/_layout/app/_components/a-header.vue
@@ -18,7 +18,7 @@
MASTER TASK
- SUB TASK
+ SUB TASK
TÍM
BLOCKER
@@ -51,6 +51,7 @@
+
@@ -60,12 +61,14 @@
import ZTeamModal from '@/plugins/tm@modal/team/z-team-modal.vue'
import ZBlockerModal from '@/plugins/tm@modal/blocker/z-blocker-modal.vue'
import ZMasterTaskModal from '@/plugins/tm@modal/master-task/z-master-task-modal.vue'
+import ZSubTaskModal from '@/plugins/tm@modal/sub-task/z-sub-task-modal.vue'
export default {
components: {
ZTeamModal,
ZBlockerModal,
- ZMasterTaskModal
+ ZMasterTaskModal,
+ ZSubTaskModal
},
data() {
@@ -73,7 +76,8 @@ export default {
user: null,
createTeamDialog: false,
createBlockerDialog: false,
- createMasterTaskDialog: false
+ createMasterTaskDialog: false,
+ createSubTaskDialog: false
}
},
diff --git a/app/src/plugins/tm@modal/master-task/z-master-task-modal.vue b/app/src/plugins/tm@modal/master-task/z-master-task-modal.vue
index 2ec68aa..d807976 100644
--- a/app/src/plugins/tm@modal/master-task/z-master-task-modal.vue
+++ b/app/src/plugins/tm@modal/master-task/z-master-task-modal.vue
@@ -1,6 +1,6 @@
-
+