From 8dac502da57b2a24b65b2e1cca94dd5abc6821b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rn-Michael=20Miehe?= <40151420+ldericher@users.noreply.github.com> Date: Mon, 12 Sep 2022 22:22:40 +0000 Subject: [PATCH] optional param --- ui/src/d.ts/shims-ovdashboard.d.ts | 2 +- ui/src/plugins/ovdashboard.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ui/src/d.ts/shims-ovdashboard.d.ts b/ui/src/d.ts/shims-ovdashboard.d.ts index 62974b6..f10213a 100644 --- a/ui/src/d.ts/shims-ovdashboard.d.ts +++ b/ui/src/d.ts/shims-ovdashboard.d.ts @@ -1,7 +1,7 @@ declare module 'vue/types/vue' { interface Vue { $ovdashboard: { - api_url: (endpoint: string) => string; + api_url: (endpoint?: string) => string; } } } diff --git a/ui/src/plugins/ovdashboard.ts b/ui/src/plugins/ovdashboard.ts index 86c03a9..a926b92 100644 --- a/ui/src/plugins/ovdashboard.ts +++ b/ui/src/plugins/ovdashboard.ts @@ -18,7 +18,7 @@ class OVDashboardPlugin { } } - public api_url(endpoint: string | undefined): string { + public api_url(endpoint?: string): string { if (endpoint === undefined) return this.api_baseurl;