Commit 1e7fe815 authored by Bahadir Can Yildiz's avatar Bahadir Can Yildiz

Merge branch 'feature/Cont_WF' into develop

parents d5264732 943c1ab1
...@@ -31,13 +31,16 @@ angular.module('ulakbus') ...@@ -31,13 +31,16 @@ angular.module('ulakbus')
templateUrl: 'components/uitemplates/form_service_pg.html', templateUrl: 'components/uitemplates/form_service_pg.html',
controller: 'FormServicePg' controller: 'FormServicePg'
}) })
// use crud without selected user // use crud without selected user
// important: regex urls must be defined later than static ones // important: regex urls must be defined later than static ones
.when('/:wf/', { .when('/:wf/', {
templateUrl: 'components/crud/templates/crud-preload.html', templateUrl: 'components/crud/templates/crud-preload.html',
controller: 'CRUDController' controller: 'CRUDController'
}) })
.when('/cwf/:wf/:token', {
templateUrl: 'components/crud/templates/crud.html',
controller: 'CRUDController'
})
.when('/:wf/do/:cmd', { .when('/:wf/do/:cmd', {
templateUrl: 'components/crud/templates/crud.html', templateUrl: 'components/crud/templates/crud.html',
controller: 'CRUDListFormController' controller: 'CRUDListFormController'
...@@ -58,8 +61,6 @@ angular.module('ulakbus') ...@@ -58,8 +61,6 @@ angular.module('ulakbus')
templateUrl: 'components/crud/templates/crud.html', templateUrl: 'components/crud/templates/crud.html',
controller: 'CRUDListFormController' controller: 'CRUDListFormController'
}) })
.otherwise({redirectTo: '/dashboard'}); .otherwise({redirectTo: '/dashboard'});
}]) }])
.factory('IsOnline', function () { .factory('IsOnline', function () {
......
...@@ -68,7 +68,8 @@ angular.module('ulakbus.crud', ['schemaForm', 'ui.bootstrap', 'ulakbus.formServi ...@@ -68,7 +68,8 @@ angular.module('ulakbus.crud', ['schemaForm', 'ui.bootstrap', 'ulakbus.formServi
id: scope.param_id || routeParams.param_id, id: scope.param_id || routeParams.param_id,
wf: routeParams.wf, wf: routeParams.wf,
object_id: routeParams.key, object_id: routeParams.key,
filters: {} filters: {},
token: routeParams.token
}; };
if (scope.param_id) { if (scope.param_id) {
......
...@@ -43,7 +43,7 @@ angular.module('ulakbus') ...@@ -43,7 +43,7 @@ angular.module('ulakbus')
restrict: 'E', restrict: 'E',
replace: true, replace: true,
scope: {}, scope: {},
controller: function ($scope) { controller: function ($scope, $log) {
// notification categories: // notification categories:
// 1: tasks, 2: messages, 3: announcements, 4: recents // 1: tasks, 2: messages, 3: announcements, 4: recents
$scope.notifications = {1: [], 2: [], 3: [], 4: []}; $scope.notifications = {1: [], 2: [], 3: [], 4: []};
...@@ -80,6 +80,7 @@ angular.module('ulakbus') ...@@ -80,6 +80,7 @@ angular.module('ulakbus')
* When "notifications" send via websocket, parse notifications by type. * When "notifications" send via websocket, parse notifications by type.
*/ */
$scope.$on("notifications", function (event, data) { $scope.$on("notifications", function (event, data) {
$log.debug("Notification!", data);
$scope.groupNotifications(data); $scope.groupNotifications(data);
}); });
......
...@@ -38,7 +38,7 @@ ...@@ -38,7 +38,7 @@
</a> </a>
<ul class="dropdown-messages" uib-dropdown-menu ng-show="notifications[2].length > 0"> <ul class="dropdown-messages" uib-dropdown-menu ng-show="notifications[2].length > 0">
<li ng-repeat="notify in notifications[2] | limitTo: '8'"> <li ng-repeat="notify in notifications[2] | limitTo: '8'">
<a> <a href="{{notify.url}}">
<div ng-click="popModal(notify)"> <div ng-click="popModal(notify)">
<div> <div>
<strong>{{notify.title}}</strong> <strong>{{notify.title}}</strong>
...@@ -70,7 +70,7 @@ ...@@ -70,7 +70,7 @@
</a> </a>
<ul class="dropdown-tasks" uib-dropdown-menu ng-if="notifications[1].length > 0"> <ul class="dropdown-tasks" uib-dropdown-menu ng-if="notifications[1].length > 0">
<li ng-repeat="notify in notifications[1] | limitTo: '8'"> <li ng-repeat="notify in notifications[1] | limitTo: '8'">
<a> <a href="{{notify.url}}">
<div> <div>
<p> <p>
<strong>{{notify.title}}</strong> <strong>{{notify.title}}</strong>
...@@ -106,7 +106,7 @@ ...@@ -106,7 +106,7 @@
</a> </a>
<ul class="dropdown-alerts" uib-dropdown-menu ng-if="notifications[3].length > 0"> <ul class="dropdown-alerts" uib-dropdown-menu ng-if="notifications[3].length > 0">
<li ng-repeat="notify in notifications[3] | limitTo: '8'"> <li ng-repeat="notify in notifications[3] | limitTo: '8'">
<a role="button"> <a role="button" href="{{notify.url}}">
<div> <div>
<i class="fa fa-comment fa-fw"></i> New Comment <i class="fa fa-comment fa-fw"></i> New Comment
<span class="pull-right text-muted small">4 minutes ago</span> <span class="pull-right text-muted small">4 minutes ago</span>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment