mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-11-02 03:12:21 +00:00
removed unused js and css files, remoted html5 notifications (for now)
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
'use strict';
|
||||
|
||||
angular.module('app').controller("UserController", function($scope, $http, user, notify) {
|
||||
angular.module('app').controller("UserController", function($scope, $http, user) {
|
||||
|
||||
$scope.account = user;
|
||||
|
||||
@@ -17,10 +17,6 @@ angular.module('app').controller("UserController", function($scope, $http, user,
|
||||
console.log(data);
|
||||
});
|
||||
|
||||
$scope.notifications = {}
|
||||
$scope.notifications.supported = notify.supported();
|
||||
$scope.notifications.granted = notify.granted();
|
||||
|
||||
$scope.save = function() {
|
||||
// request to create a new repository
|
||||
$http({method: 'PUT', url: '/v1/user', data: $scope.userTemp }).
|
||||
@@ -39,7 +35,4 @@ angular.module('app').controller("UserController", function($scope, $http, user,
|
||||
name : $scope.user.name
|
||||
};
|
||||
};
|
||||
$scope.enableNotifications = function() {
|
||||
notify.requestPermission();
|
||||
};
|
||||
});
|
||||
Reference in New Issue
Block a user