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 });