Merge pull request #13 from gkerma/release/v0.15.0

fix: Add restart to services and fix wireguard qrcode module
This commit is contained in:
CyberMind 2026-01-25 15:14:59 +01:00 committed by GitHub
commit d2b2a10519
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 13 additions and 2 deletions

View File

@ -1,4 +1,5 @@
'use strict';
'require baseclass';
/**
* QR Code Generator for WireGuard Dashboard
@ -443,7 +444,7 @@ function generateSVG(text, displaySize) {
}
}
return {
return baseclass.extend({
/**
* Generate QR code as SVG string
* @param {string} text - Text to encode (up to ~300 bytes)
@ -488,4 +489,4 @@ return {
getMaxCapacity: function() {
return VERSION_CAPACITIES[20]; // 858 bytes
}
};
});

View File

@ -36,6 +36,11 @@ reload_service() {
"$PROG" reload
}
restart_service() {
stop
start
}
service_triggers() {
procd_add_reload_trigger "haproxy"
}

View File

@ -284,6 +284,11 @@ reload_service() {
start
}
restart_service() {
stop
start
}
status() {
"$PROG" status
}