mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-11-03 23:10:49 +00:00
improvemed ability to display the html5 notifications for commits
This commit is contained in:
@@ -2,8 +2,11 @@
|
||||
|
||||
angular.module('app').controller("HomeController", function($scope, $http, feed, notify) {
|
||||
|
||||
feed.subscribe(function(message) {
|
||||
notify.send(message.repo.name);
|
||||
feed.subscribe(function(item) {
|
||||
notify.sendCommit(
|
||||
item.repo,
|
||||
item.commit
|
||||
);
|
||||
});
|
||||
|
||||
$http({method: 'GET', url: '/v1/user/feed'}).
|
||||
|
||||
Reference in New Issue
Block a user