r1773 + don't show tag tab with empty tree
authorDenis Ovsienko <infrastation@yandex.ru>
Wed, 12 Mar 2008 16:16:47 +0000 (16:16 +0000)
committerDenis Ovsienko <infrastation@yandex.ru>
Wed, 12 Mar 2008 16:16:47 +0000 (16:16 +0000)
inc/navigation.php
inc/triggers.php

index 8651fb4a4904b8f064ff0e1b715439d7d01afed8..c2199a5d256d91ca264257606242c98a6c7543c0 100644 (file)
@@ -101,6 +101,7 @@ $trigger['object']['snmpportfinder'] = 'trigger_snmpportfinder';
 $trigger['object']['slb'] = 'trigger_natv4';
 $trigger['object']['lvsconfig'] = 'trigger_lvsconfig';
 $trigger['object']['autoports'] = 'trigger_autoports';
 $trigger['object']['slb'] = 'trigger_natv4';
 $trigger['object']['lvsconfig'] = 'trigger_lvsconfig';
 $trigger['object']['autoports'] = 'trigger_autoports';
+$trigger['object']['tags'] = 'trigger_tags';
 $ophandler['object']['ports']['addPort'] = 'addPortForObject';
 $ophandler['object']['ports']['delPort'] = 'delPortFromObject';
 $ophandler['object']['ports']['editPort'] = 'editPortForObject';
 $ophandler['object']['ports']['addPort'] = 'addPortForObject';
 $ophandler['object']['ports']['delPort'] = 'delPortFromObject';
 $ophandler['object']['ports']['editPort'] = 'editPortForObject';
index e26e93a0e5ca96d0aa067a0604984cf64f989c0f..98d8ab399f240b7ac511f505f2c84d0d24c934d8 100644 (file)
@@ -96,4 +96,9 @@ function trigger_autoports ()
        return count (getAutoPorts ($info['objtype_id'])) != 0;
 }
 
        return count (getAutoPorts ($info['objtype_id'])) != 0;
 }
 
+function trigger_tags ()
+{
+       return count (getTagList()) > 0;
+}
+
 ?>
 ?>