1
1
<template >
2
- <v-container fluid class =" admin-page" >
3
- <v-card class =" fill-height d-flex flex-column" >
2
+ <v-container fluid class =" admin-page ma-0 pa-0 " >
3
+ <v-card class =" fill-height d-flex flex-column elevation-0 " >
4
4
<v-tabs v-model =" activeTab" color =" primary" align-tabs =" center" >
5
- <v-tab :value =" 1" @click =" fetchUsersAndRoles" >{{
5
+ <v-tab :value =" 1" @click =" fetchUsersAndRoles" >< v-icon >mdi-account-multiple</ v-icon > {{
6
6
$t('admin.tabs.userManagement') }}</v-tab >
7
- <v-tab :value =" 2" @click =" fetchRoles" >{{ $t('admin.tabs.rolesManagement') }}</v-tab >
8
- <v-tab :value =" 3" @click =" fetchProtocolDriverInstances" >{{ $t('admin.tabs.protocolDriverInstances') }}</v-tab >
9
- <v-tab :value =" 4" >{{ $t('admin.tabs.systemSettings') }}</v-tab >
10
- <v-tab :value =" 5" >{{ $t('admin.tabs.logs') }}</v-tab >
7
+ <v-tab :value =" 2" @click =" fetchRoles" ><v-icon >mdi-shield-account</v-icon > {{ $t('admin.tabs.rolesManagement') }}</v-tab >
8
+ <v-tab :value =" 3" @click =" fetchProtocolDriverInstances" ><v-icon >mdi-cogs</v-icon > {{ $t('admin.tabs.protocolDriverInstances') }}</v-tab >
9
+ <v-tab :value =" 4" @click =" fetchProtocolConnections" ><v-icon >mdi-lan-connect</v-icon > {{ $t('admin.tabs.protocolConnections') }}</v-tab >
10
+ <v-tab :value =" 5" ><v-icon >mdi-cog</v-icon > {{ $t('admin.tabs.systemSettings') }}</v-tab >
11
+ <v-tab :value =" 6" ><v-icon >mdi-file-document-outline</v-icon > {{ $t('admin.tabs.logs') }}</v-tab >
11
12
</v-tabs >
12
13
13
- <v-card-text >
14
+ <v-card-text class = " ma-0 pa-0 " >
14
15
<v-window v-model =" activeTab" >
15
16
<v-window-item :value =" 1" >
16
17
<user-management-tab ref =" userManagementTabRef" />
25
26
</v-window-item >
26
27
27
28
<v-window-item :value =" 4" >
28
- <system-settings -tab ref =" systemSettingsTabRef " />
29
+ <protocol-connections -tab ref =" protocolConnectionsTabRef " />
29
30
</v-window-item >
30
31
31
32
<v-window-item :value =" 5" >
33
+ <system-settings-tab ref =" systemSettingsTabRef" />
34
+ </v-window-item >
35
+
36
+ <v-window-item :value =" 6" >
32
37
<logs-tab ref =" logsTab" />
33
38
</v-window-item >
34
39
</v-window >
42
47
import UserManagementTab from ' ./UserManagementTab.vue' ;
43
48
import RolesManagementTab from ' ./RolesManagementTab.vue' ;
44
49
import ProtocolDriverInstancesTab from ' ./ProtocolDriverInstancesTab.vue' ;
50
+ import ProtocolConnectionsTab from ' ./ProtocolConnectionsTab.vue' ;
45
51
import SystemSettingsTab from ' ./SystemSettingsTab.vue' ;
46
52
import LogsTab from ' ./LogsTab.vue' ;
47
53
import { ref } from ' vue' ;
48
54
49
- const userManagementTabRef = ref (1 );
50
- const rolesManagementTabRef = ref (2 );
51
- const protocolDriverInstancesTabRef = ref (3 );
52
- const systemSettingsTabRef = ref (4 );
53
- const logsTab = ref (5 );
55
+ const userManagementTabRef = ref (null );
56
+ const rolesManagementTabRef = ref (null );
57
+ const protocolDriverInstancesTabRef = ref (null );
58
+ const protocolConnectionsTabRef = ref (null );
59
+ const systemSettingsTabRef = ref (null );
60
+ const logsTab = ref (null );
54
61
const activeTab = ref (1 );
55
62
56
63
const fetchUsersAndRoles = async () => {
@@ -70,6 +77,11 @@ const fetchProtocolDriverInstances = async () => {
70
77
await protocolDriverInstancesTabRef .value .fetchProtocolDriverInstances ();
71
78
}
72
79
80
+ const fetchProtocolConnections = async () => {
81
+ if (protocolConnectionsTabRef? .value ? .fetchProtocolConnections )
82
+ await protocolConnectionsTabRef .value .fetchProtocolConnections ();
83
+ }
84
+
73
85
< / script>
74
86
75
87
< style scoped>
0 commit comments