Uni Port will not be exanded by defualt
[unimgr.git] / dlux / cpeui / cpeui-module / src / main / resources / cpeui / tenant.tpl.html
index 0140a6ad778ceda09c2a445f5efd364d4e94eb25..eb8b5e5278eaad519dc54e822d9cc91aaa7ce173 100644 (file)
                                                <td class="minimal-width">{{ cesDisplayNames[uni.device] }}</td>
                                                <td class="minimal-width">{{ uni.prettyID }}</td>
                                                <td>
-                                               <button class="btn add-row" ng-click="expandFlags.tuni[uni['uni-id']] = false" ng-if="expandFlags.tuni[uni['uni-id']]">
+                                               <button class="btn add-row" ng-click="expandFlags.tuni[uni['uni-id']] = true" ng-if="!expandFlags.tuni[uni['uni-id']]">
                                                        <i class="icon-plus"></i> Show Ports
                                                </button>
-                                                       <table class="footable table table-striped inner-table" ng-if="!expandFlags.tuni[uni['uni-id']]">
+                                                       <table class="footable table table-striped inner-table" ng-if="expandFlags.tuni[uni['uni-id']]">
                                                                <thead>
                                                                        <tr>
                                                                                <th class="minimal-width">
-                                                                                       <button class="btn add-row" ng-click="expandFlags.tuni[uni['uni-id']] = true">
+                                                                                       <button class="btn add-row" ng-click="expandFlags.tuni[uni['uni-id']] = false">
                                                                                                <i class="icon-minus"></i>
                                                                                        </button>
                                                                                </th>