mirror of
https://github.com/strapi/strapi.git
synced 2026-01-06 04:03:25 +00:00
add tokenType to the willAccessTokenList event in the API and Transfer Token
This commit is contained in:
parent
abcb2b13ef
commit
f01ac88aa2
@ -65,7 +65,9 @@ const ApiTokenListView = () => {
|
||||
} = useQuery(
|
||||
['api-tokens'],
|
||||
async () => {
|
||||
trackUsage('willAccessTokenList');
|
||||
trackUsage('willAccessTokenList', {
|
||||
tokenType: API_TOKEN_TYPE,
|
||||
});
|
||||
const {
|
||||
data: { data },
|
||||
} = await get(`/admin/api-tokens`);
|
||||
|
||||
@ -11,6 +11,7 @@ import {
|
||||
NoPermissions,
|
||||
useRBAC,
|
||||
NoContent,
|
||||
useTracking,
|
||||
useGuidedTour,
|
||||
LinkButton,
|
||||
useFetchClient,
|
||||
@ -34,6 +35,7 @@ const TransferTokenListView = () => {
|
||||
allowedActions: { canCreate, canDelete, canUpdate, canRead },
|
||||
} = useRBAC(adminPermissions.settings['transfer-tokens']);
|
||||
const { push } = useHistory();
|
||||
const { trackUsage } = useTracking();
|
||||
|
||||
const { startSection } = useGuidedTour();
|
||||
const startSectionRef = useRef(startSection);
|
||||
@ -64,6 +66,9 @@ const TransferTokenListView = () => {
|
||||
} = useQuery(
|
||||
['transfer-tokens'],
|
||||
async () => {
|
||||
trackUsage('willAccessTokenList', {
|
||||
tokenType: TRANSFER_TOKEN_TYPE,
|
||||
});
|
||||
const {
|
||||
data: { data },
|
||||
} = await get(`/admin/transfer/tokens`);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user