diff --git a/lib/tool_shed/webapp/frontend/package.json b/lib/tool_shed/webapp/frontend/package.json index 0050777dadba..2423b4e2301d 100644 --- a/lib/tool_shed/webapp/frontend/package.json +++ b/lib/tool_shed/webapp/frontend/package.json @@ -48,7 +48,7 @@ "e": "^0.2.2", "graphql": "^16.6.0", "graphql-tag": "^2.12.6", - "openapi-typescript-fetch": "^1.1.3", + "openapi-fetch": "^0.10.2", "pinia": "^2.0.28", "quasar": "^2.5.0", "vue": "^3.2.6", diff --git a/lib/tool_shed/webapp/frontend/src/components/RegisterPage.vue b/lib/tool_shed/webapp/frontend/src/components/RegisterPage.vue index a66cf394f529..c28d55571940 100644 --- a/lib/tool_shed/webapp/frontend/src/components/RegisterPage.vue +++ b/lib/tool_shed/webapp/frontend/src/components/RegisterPage.vue @@ -1,7 +1,7 @@ diff --git a/lib/tool_shed/webapp/frontend/src/components/pages/ChangePassword.vue b/lib/tool_shed/webapp/frontend/src/components/pages/ChangePassword.vue index de69706dec34..ae2a05b4dda7 100644 --- a/lib/tool_shed/webapp/frontend/src/components/pages/ChangePassword.vue +++ b/lib/tool_shed/webapp/frontend/src/components/pages/ChangePassword.vue @@ -2,7 +2,7 @@ import { ref } from "vue" import ModalForm from "@/components/ModalForm.vue" import { AUTH_FORM_INPUT_PROPS } from "@/constants" -import { fetcher } from "@/schema" +import { client } from "@/schema" import { errorMessage } from "@/util" import ErrorBanner from "@/components/ErrorBanner.vue" import router from "@/router" @@ -11,13 +11,15 @@ const current = ref("") const password = ref("") const confirm = ref("") const error = ref(null) -const changePasswordFetcher = fetcher.path("/api_internal/change_password").method("put").create() async function onChange() { - changePasswordFetcher({ - current: current.value, - password: password.value, - }) + client + .PUT("/api_internal/change_password", { + body: { + current: current.value, + password: password.value, + }, + }) .then(() => { router.push("/") }) diff --git a/lib/tool_shed/webapp/frontend/src/components/pages/CitableRepositoryPage.vue b/lib/tool_shed/webapp/frontend/src/components/pages/CitableRepositoryPage.vue index bbf717fecde4..15b8139e188c 100644 --- a/lib/tool_shed/webapp/frontend/src/components/pages/CitableRepositoryPage.vue +++ b/lib/tool_shed/webapp/frontend/src/components/pages/CitableRepositoryPage.vue @@ -1,13 +1,11 @@