diff --git a/components/access-keys/edit-item.vue b/components/access-keys/edit-item.vue
index 7c90c2f..f57fe2d 100644
--- a/components/access-keys/edit-item.vue
+++ b/components/access-keys/edit-item.vue
@@ -1,65 +1,67 @@
@@ -78,7 +80,10 @@ async function submitForm() {
-
+
+
+
+
diff --git a/composables/useAccessKeys.ts b/composables/useAccessKeys.ts
index 634ca17..de6f068 100644
--- a/composables/useAccessKeys.ts
+++ b/composables/useAccessKeys.ts
@@ -1,13 +1,13 @@
-import { name } from './../node_modules/@jsep-plugin/regex/types/tsd.d'
+import { name } from "./../node_modules/@jsep-plugin/regex/types/tsd.d"
export const useAccessKeys = () => {
const { $api } = useNuxtApp()
const listUserServiceAccounts = async (params: object) => {
- return await $api.get('/list-service-accounts', { params })
+ return await $api.get("/list-service-accounts", { params })
}
const createServiceAccount = async (data: any) => {
- return await $api.put('/add-service-accounts', data)
+ return await $api.put("/add-service-accounts", data)
}
// const deleteMultipleServiceAccounts = async (data: any) => {
@@ -15,20 +15,15 @@ export const useAccessKeys = () => {
// }
const getServiceAccount = async (name: string) => {
- return await $api.get(
- `/info-service-account?accessKey=${encodeURIComponent(name)}`
- )
+ return await $api.get(`/info-service-account?accessKey=${encodeURIComponent(name)}`)
}
const updateServiceAccount = async (name: string, data: any) => {
- return await $api.post(`/update-service-account`, data)
+ return await $api.post(`/update-service-account?accessKey=${encodeURIComponent(name)}`, data)
}
const deleteServiceAccount = async (name: string) => {
- return await $api.delete(
- `/delete-service-accounts?accessKey==${encodeURIComponent(name)}`,
- {}
- )
+ return await $api.delete(`/delete-service-accounts?accessKey=${encodeURIComponent(name)}`, {})
}
const createServiceAccountCreds = async (data: any) => {
@@ -41,7 +36,7 @@ export const useAccessKeys = () => {
deleteServiceAccount,
createServiceAccountCreds,
updateServiceAccount,
- getServiceAccount
+ getServiceAccount,
// deleteMultipleServiceAccounts
}
}
diff --git a/pages/access-keys/index.vue b/pages/access-keys/index.vue
index 3955327..11a6c47 100644
--- a/pages/access-keys/index.vue
+++ b/pages/access-keys/index.vue
@@ -6,10 +6,7 @@
-
+
@@ -32,12 +29,7 @@
-
+
@@ -58,33 +50,17 @@
:row-key="rowKey"
@update:checked-row-keys="handleCheck" />
-
+
-
-
+
+