fix: Correct netifyd service status detection in settings UI
The procd service uses 'instance1' as instance name, not 'netifyd'. Update the status check to iterate all instances instead of looking for a hardcoded instance name. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
c9f3b2a5f8
commit
d5d263f3c5
@ -23,9 +23,17 @@ return view.extend({
|
|||||||
render: function(data) {
|
render: function(data) {
|
||||||
var m, s, o;
|
var m, s, o;
|
||||||
var netifydStatus = data[1] && data[1].netifyd;
|
var netifydStatus = data[1] && data[1].netifyd;
|
||||||
var isRunning = netifydStatus && netifydStatus.instances &&
|
var isRunning = false;
|
||||||
netifydStatus.instances.netifyd &&
|
|
||||||
netifydStatus.instances.netifyd.running;
|
// Check all instances for running status
|
||||||
|
if (netifydStatus && netifydStatus.instances) {
|
||||||
|
for (var inst in netifydStatus.instances) {
|
||||||
|
if (netifydStatus.instances[inst].running) {
|
||||||
|
isRunning = true;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Build description with status banner
|
// Build description with status banner
|
||||||
var description = E('div', [
|
var description = E('div', [
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user