From 454921c9847869ef59354e1f335568592840c079 Mon Sep 17 00:00:00 2001 From: kiswa Date: Sun, 22 Mar 2015 12:27:49 -0400 Subject: [PATCH] Update board active status behaviors. Added text to Settings page checkboxes. Updated boards controller to only show active boards in lists. New CSS class for settings page text. --- css/styles.css | 8 +++++--- js/controllers/boards.js | 6 ++++-- partials/settingsBoardTable.html | 9 ++++++++- 3 files changed, 17 insertions(+), 6 deletions(-) diff --git a/css/styles.css b/css/styles.css index 477c5b1..446feac 100644 --- a/css/styles.css +++ b/css/styles.css @@ -472,9 +472,6 @@ p.detail { border-right: 1px solid #ccc; } #widget-container { - /*background-color: #f8f8f8; - box-shadow: 0px 0px 7px 0px rgba(51,51,51,.3); - border-radius: 5px;*/ display: table-cell; } .min-padding { padding: 5px; } @@ -519,6 +516,11 @@ fieldset > .list-group { span.filter { margin-left: 5px; } +.board-status { + font-weight: normal; + display: inline-block; + min-width: 50px; +} #change-password, #default-board, #change-username { width: 48%; float: left; diff --git a/js/controllers/boards.js b/js/controllers/boards.js index 1511a97..e424bef 100644 --- a/js/controllers/boards.js +++ b/js/controllers/boards.js @@ -155,8 +155,10 @@ function ($scope, $routeParams, $location, $interval, $window, if ($scope.boards) { $scope.boardNames = []; $scope.boards.forEach(function(board) { - // Add each board's name to the list. - $scope.boardNames.push({id: board.id, name: board.name}); + if (parseInt(board.active) === 1) { + // Add each board's name to the list. + $scope.boardNames.push({id: board.id, name: board.name}); + } // If the board is the current board, process and assign it. if (board.id == $scope.boardId) { diff --git a/partials/settingsBoardTable.html b/partials/settingsBoardTable.html index 4f8feb2..ac73834 100644 --- a/partials/settingsBoardTable.html +++ b/partials/settingsBoardTable.html @@ -52,7 +52,14 @@ data-ng-click="boardFormData.setBoard(board)"> - + +