diff --git a/src/app/pages/teams/lists/ListsTabCtrl.js b/src/app/pages/teams/lists/ListsTabCtrl.js
index 7eea4d0..b3d149f 100644
--- a/src/app/pages/teams/lists/ListsTabCtrl.js
+++ b/src/app/pages/teams/lists/ListsTabCtrl.js
@@ -30,12 +30,19 @@
{ name: 'Vim an eius', deleted : false, members : ['8955sddf', '4563faass'] },
];
+ $scope.tabs = membersList.getTabs();
+
+ $scope.searchResult = membersList.getAllMessages();
+
+
+
$scope.Lists.forEach(function(item) {
item.color = getRandomColor();
});
$scope.newTodoText = '';
- $scope.listMembers = [{ name: 'Nasta Linnie'}];
+ $scope.listMembers = [];
+ $scope.selectedLabel = "listing";
$scope.addNewList = function (event, clickPlus) {
if (clickPlus || event.which === 13) {
@@ -65,6 +72,18 @@
console.log($scope.listMembers);
};
+ $scope.getMemberByLabel = function (label) {
+ console.log(label);
+ $scope.searchResult = membersList.getMembersByLabel(label);
+ };
+
+ $scope.removeMember = function (index) {
+ if (confirm("Are you sure?"))
+ {
+ //$scope.Lists[index].deleted = true;
+ }
+ };
+
$scope.removeList = function (index) {
if (confirm("Are you sure?"))
{
diff --git a/src/app/pages/teams/lists/lists.html b/src/app/pages/teams/lists/lists.html
index 25f0ebb..32bab7c 100644
--- a/src/app/pages/teams/lists/lists.html
+++ b/src/app/pages/teams/lists/lists.html
@@ -1,21 +1 @@
-
\ No newline at end of file
+
\ No newline at end of file
diff --git a/src/app/pages/teams/lists/lists.members.directive.js b/src/app/pages/teams/lists/lists.members.directive.js
deleted file mode 100644
index 33ee454..0000000
--- a/src/app/pages/teams/lists/lists.members.directive.js
+++ /dev/null
@@ -1,19 +0,0 @@
-/**
- * @author v.lugovksy
- * created on 16.12.2015
- */
-(function () {
- 'use strict';
-
- angular.module('BlurAdmin.pages.teams.lists')
- .directive('listsMembersDirective', listsMembersDirective);
-
- /** @ngInject */
- function listsMembersDirective() {
- return {
- restrict: 'EA',
- controller: 'ListsTabCtrl',
- templateUrl: 'app/pages/teams/lists/listsMembersDirective.html'
- };
- }
-})();
\ No newline at end of file
diff --git a/src/app/pages/teams/lists/listsDirective.html b/src/app/pages/teams/lists/listsDirective.html
index fca0d03..58f750a 100644
--- a/src/app/pages/teams/lists/listsDirective.html
+++ b/src/app/pages/teams/lists/listsDirective.html
@@ -1,18 +1,82 @@
-
-
-
-
-
+
+
+
+
+
+
+
+
+
![]()
+
+
+
+
+ {{m.position}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
![]()
+
+
+
+
+ {{m.position}}
+
+
+
+
+
+
+
+
diff --git a/src/app/pages/teams/lists/listsMembersDirective.html b/src/app/pages/teams/lists/listsMembersDirective.html
deleted file mode 100644
index c94d9dc..0000000
--- a/src/app/pages/teams/lists/listsMembersDirective.html
+++ /dev/null
@@ -1,13 +0,0 @@
-
-
-
-
![]()
-
-
-
-
-
-
-