9
9
<v-tab :value =" 4" @click =" fetchProtocolConnections" ><v-icon >mdi-lan-connect</v-icon > {{ $t('admin.tabs.protocolConnections') }}</v-tab >
10
10
<v-tab :value =" 5" ><v-icon >mdi-cog</v-icon > {{ $t('admin.tabs.systemSettings') }}</v-tab >
11
11
<v-tab :value =" 6" ><v-icon >mdi-file-document-outline</v-icon > {{ $t('admin.tabs.logs') }}</v-tab >
12
+ <v-tab :value =" 7" @click =" fetchUserActions" ><v-icon >mdi-account-clock</v-icon > {{ $t('admin.tabs.userActions') }}</v-tab >
12
13
</v-tabs >
13
14
14
15
<v-card-text class =" ma-0 pa-0" >
36
37
<v-window-item :value =" 6" >
37
38
<logs-tab ref =" logsTab" />
38
39
</v-window-item >
40
+
41
+ <v-window-item :value =" 7" >
42
+ <user-actions-tab ref =" userActionsTabRef" />
43
+ </v-window-item >
39
44
</v-window >
40
45
</v-card-text >
41
46
</v-card >
42
47
</v-container >
43
48
</template >
44
49
45
-
46
50
<script setup>
47
51
import UserManagementTab from ' ./UserManagementTab.vue' ;
48
52
import RolesManagementTab from ' ./RolesManagementTab.vue' ;
49
53
import ProtocolDriverInstancesTab from ' ./ProtocolDriverInstancesTab.vue' ;
50
54
import ProtocolConnectionsTab from ' ./ProtocolConnectionsTab.vue' ;
51
55
import SystemSettingsTab from ' ./SystemSettingsTab.vue' ;
52
56
import LogsTab from ' ./LogsTab.vue' ;
57
+ import UserActionsTab from ' ./UserActions.vue' ;
53
58
import { ref } from ' vue' ;
54
59
55
60
const userManagementTabRef = ref (null );
@@ -58,6 +63,7 @@ const protocolDriverInstancesTabRef = ref(null);
58
63
const protocolConnectionsTabRef = ref (null );
59
64
const systemSettingsTabRef = ref (null );
60
65
const logsTab = ref (null );
66
+ const userActionsTabRef = ref (null );
61
67
const activeTab = ref (1 );
62
68
63
69
const fetchUsersAndRoles = async () => {
@@ -82,6 +88,11 @@ const fetchProtocolConnections = async () => {
82
88
await protocolConnectionsTabRef .value .fetchProtocolConnections ();
83
89
}
84
90
91
+ const fetchUserActions = async () => {
92
+ if (userActionsTabRef? .value ? .fetchUserActions )
93
+ await userActionsTabRef .value .fetchUserActions ();
94
+ }
95
+
85
96
< / script>
86
97
87
98
< style scoped>
0 commit comments