diff --git a/css/style.css b/css/style.css index 689e7bbda..469f093ae 100644 --- a/css/style.css +++ b/css/style.css @@ -531,7 +531,7 @@ button.button-inline:hover { background-color: #f0f0f0; } -.icon-close { +#app-sidebar .icon-close { position: absolute; top: 5px; right: 5px; @@ -685,7 +685,6 @@ button.button-inline:hover { min-width: 240px; height: 34px; display: flex; - margin: 3px 3px 3px 0; } .colorselect .color { @@ -740,6 +739,7 @@ button.button-inline:hover { position: relative; cursor: pointer; display: block; + margin: 2px 0px; } .popovermenu ul { @@ -755,7 +755,7 @@ button.button-inline:hover { #boardlist span.icon { width: 30px; height: 30px; - display: inline-block; + margin: 2px 0px; } .cell-board-bullet { @@ -811,6 +811,15 @@ button.button-inline:hover { margin-top: 5px; } +#boardlist .board-edit-controls { + float: right; + display: flex; +} + +#boardlist input { + margin: 0px; +} + /** * Board details */ diff --git a/js/controller/ListController.js b/js/controller/ListController.js index c4b76388e..16ec5f598 100644 --- a/js/controller/ListController.js +++ b/js/controller/ListController.js @@ -33,6 +33,7 @@ app.controller('ListController', function ($scope, $location, $filter, BoardServ $scope.colors = ['0082c9', '00c9c6','00c906', 'c92b00', 'F1DB50', '7C31CC', '3A3B3D', 'CACBCD']; $scope.boardservice = BoardService; $scope.newBoard.color = $scope.colors[0]; + $scope.updatingBoard = null; // FIXME: not nice, but we want to load this only once if($element.attr('id') === 'app-navigation') { @@ -100,7 +101,18 @@ app.controller('ListController', function ($scope, $location, $filter, BoardServ $scope.boardUpdate = function(board) { BoardService.update(board).then(function(data) { $scope.filterData(); + board.status.edit = false; }); + }; + + $scope.boardUpdateBegin = function(board) { + $scope.updatingBoard = board; + }; + + $scope.boardUpdateReset = function(board) { + board.title = $scope.updatingBoard.title; + board.color = $scope.updatingBoard.color; + $scope.filterData(); board.status.edit = false; }; diff --git a/js/service/ApiService.js b/js/service/ApiService.js index cbc394d6a..f3fa850e3 100644 --- a/js/service/ApiService.js +++ b/js/service/ApiService.js @@ -124,9 +124,8 @@ app.factory('ApiService', function($http, $q){ } else { Object.keys(entity).forEach(function (key) { element[key] = entity[key]; - if(element[key]!==null) - element[key].status = {}; }); + element.status = {}; } }; ApiService.prototype.remove = function(id) { diff --git a/templates/part.boardlist.php b/templates/part.boardlist.php index e6cbff4a4..1ca997c4f 100644 --- a/templates/part.boardlist.php +++ b/templates/part.boardlist.php @@ -23,7 +23,17 @@ - {{ b.title }} + +
{{ b.title }}
+
+
+ +
+

+
+
+
+
@@ -32,10 +42,14 @@
-
+ +
+ + +
@@ -84,11 +102,15 @@ ng-click="selectColor(c)" ng-class="{'selected': (c == newBoard.color), 'dark': (newBoard.color | textColorFilter) === '#ffffff' }">
- - + +
+ + +
+