mirror of
https://github.com/netbirdio/plugins.git
synced 2026-05-22 18:44:07 -07:00
www/caddy: Change this.ajaxGet to this.ajaxCall in Widgets. (#4084)
This commit is contained in:
@@ -52,7 +52,7 @@ export default class CaddyCertificate extends BaseTableWidget {
|
||||
|
||||
async onWidgetTick() {
|
||||
// Check if Caddy is enabled
|
||||
const caddyStatus = await this.ajaxGet('/api/caddy/reverse_proxy/get');
|
||||
const caddyStatus = await this.ajaxCall('/api/caddy/reverse_proxy/get');
|
||||
if (!caddyStatus.caddy.general || caddyStatus.caddy.general.enabled === "0") {
|
||||
this.displayError(`${this.translations.unconfigured}`);
|
||||
return;
|
||||
|
||||
@@ -51,7 +51,7 @@ export default class CaddyDomain extends BaseTableWidget {
|
||||
|
||||
async onWidgetTick() {
|
||||
// Check if caddy is enabled
|
||||
const data = await this.ajaxGet('/api/caddy/reverse_proxy/get');
|
||||
const data = await this.ajaxCall('/api/caddy/reverse_proxy/get');
|
||||
if (!data.caddy.general || data.caddy.general.enabled === "0") {
|
||||
this.displayError(`${this.translations.unconfigured}`);
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user