diff options
author | Christian Hofmaier | 2018-03-20 11:43:46 +0100 |
---|---|---|
committer | Christian Hofmaier | 2018-03-20 11:43:46 +0100 |
commit | b777775f1c4d4424d393e3b1750a8ac2164cbbd1 (patch) | |
tree | bfdea3dbfdd8443a4a2fe341ae9deaac6511dba4 /modules-available/usblockoff/page.inc.php | |
parent | [usb-lock-off] config names can now be as long as they want to + fixed table ... (diff) | |
download | slx-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.php | 10 |
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 )); } |