From df9f4cb3cb317cf6d45569b59fb29ed12f830a08 Mon Sep 17 00:00:00 2001 From: 3thibaut1304 Date: Sat, 21 Jun 2025 21:36:47 +0200 Subject: [PATCH] fix: use snake_case (sftpgo_api_key) instead of camelCase (sftpgoApiKey) to match Homer conventions --- docs/customservices.md | 2 +- src/components/services/Sftpgo.vue | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/customservices.md b/docs/customservices.md index 32e1d97..90163f0 100644 --- a/docs/customservices.md +++ b/docs/customservices.md @@ -658,7 +658,7 @@ The indicator shows SFTPGo is online, offline. Example configuration: type: "SFTPGo" logo: assets/tools/sample.png url: http://sftp-go.example.com - sftpgoApiKey: 'hYdn26pTteWZNzbAXoiqgR.jG7TKwtoMRAMrJAGgdr3Ha' + sftpgo_api_key: "hYdn26pTteWZNzbAXoiqgR.jG7TKwtoMRAMrJAGgdr3Ha" ``` ## SpeedtestTracker diff --git a/src/components/services/Sftpgo.vue b/src/components/services/Sftpgo.vue index 3b4e2f5..b44474c 100644 --- a/src/components/services/Sftpgo.vue +++ b/src/components/services/Sftpgo.vue @@ -47,8 +47,8 @@ export default { methods: { fetchStatus: async function () { let headers = {}; - if (this.item.sftpgoApiKey) { - headers["X-SFTPGO-API-KEY"] = `${this.item.sftpgoApiKey}`; + if (this.item.sftpgo_api_key) { + headers["X-SFTPGO-API-KEY"] = `${this.item.sftpgo_api_key}`; } try { const response = await this.fetch("/api/v2/version", { headers });