summaryrefslogtreecommitdiffstats
path: root/modules-available/usblockoff/page.inc.php
diff options
context:
space:
mode:
authorChristian Hofmaier2018-03-20 11:43:46 +0100
committerChristian Hofmaier2018-03-20 11:43:46 +0100
commitb777775f1c4d4424d393e3b1750a8ac2164cbbd1 (patch)
treebfdea3dbfdd8443a4a2fe341ae9deaac6511dba4 /modules-available/usblockoff/page.inc.php
parent[usb-lock-off] config names can now be as long as they want to + fixed table ... (diff)
downloadslx-admin-b777775f1c4d4424d393e3b1750a8ac2164cbbd1.tar.gz
slx-admin-b777775f1c4d4424d393e3b1750a8ac2164cbbd1.tar.xz
slx-admin-b777775f1c4d4424d393e3b1750a8ac2164cbbd1.zip
[usb-lock-off] disabled add buttons if configuration isn't added to db yet
Diffstat (limited to 'modules-available/usblockoff/page.inc.php')
-rw-r--r--modules-available/usblockoff/page.inc.php10
1 files changed, 9 insertions, 1 deletions
diff --git a/modules-available/usblockoff/page.inc.php b/modules-available/usblockoff/page.inc.php
index 8c32a699..4a8e4a80 100644
--- a/modules-available/usblockoff/page.inc.php
+++ b/modules-available/usblockoff/page.inc.php
@@ -340,9 +340,17 @@ class Page_usblockoff extends Page
$rulesArray[] = $rule;
}
}
+
+ if ($configid == "new-default") {
+ $newConfig = true;
+ } else {
+ $newConfig = false;
+ }
+
return Render::parse('usb-rules-config', array(
'rules' => (array)$rulesArray,
- 'configid' => $configid
+ 'configid' => $configid,
+ 'newConfig' => $newConfig
));
}