From 181ba8367c92931771fbb005a47deb9e387333d9 Mon Sep 17 00:00:00 2001 From: Jeromy Carriere Date: Fri, 10 Oct 2014 09:58:56 -0400 Subject: [PATCH] Add a simple hierarchical treatment for box/list view. --- www/box.ng | 15 ++++++++------- www/podcontroller.js | 4 ++++ 2 files changed, 12 insertions(+), 7 deletions(-) diff --git a/www/box.ng b/www/box.ng index d95d7bf31e6f3..7cbcd573781c4 100644 --- a/www/box.ng +++ b/www/box.ng @@ -16,9 +16,10 @@ limitations under the License.
{{ groupName }} + {{ settings.display }}
-
+
@@ -30,7 +31,7 @@ limitations under the License.
-
+
@@ -49,14 +50,14 @@ limitations under the License.
-
- box - list -
+
+box +list +reset +
-
\ No newline at end of file diff --git a/www/podcontroller.js b/www/podcontroller.js index 3d5d351ab07a8..e94fb0df8b09c 100644 --- a/www/podcontroller.js +++ b/www/podcontroller.js @@ -46,6 +46,10 @@ k8sApp.controller('PodCtrl', function ($scope, $http, $routeParams) { function GroupController() {} +GroupController.prototype.resetGroupLayout = function(group) { + delete group.settings; +}; + GroupController.prototype.handlePath = function(path) { var parts = path.split("/") // split leaves an empty string at the beginning.