From 73962a99ca9c6caba78aa6b8a53d2310f2be0968 Mon Sep 17 00:00:00 2001 From: skullbocks Date: Tue, 19 Aug 2014 12:42:10 +0200 Subject: [PATCH] [WebUI #7] Added types array to stash of the pages --- lib/IntelliHome/WebUI/Controller/Pages.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/IntelliHome/WebUI/Controller/Pages.pm b/lib/IntelliHome/WebUI/Controller/Pages.pm index e61ea29..b1cfbe0 100644 --- a/lib/IntelliHome/WebUI/Controller/Pages.pm +++ b/lib/IntelliHome/WebUI/Controller/Pages.pm @@ -37,6 +37,7 @@ sub admin_gpios { $self->stash( gpios => \@gpios, + gpio_types=> [1,2,3], nodes => \@nodes ); $self->render("gpios"); @@ -46,7 +47,7 @@ sub admin_nodes { my $self = shift; my @nodes = $self->app->build_nodes(); - $self->stash( nodes => \@nodes ); + $self->stash( nodes => \@nodes, node_types=>["master","node","agent"]); $self->render("nodes"); }