1
0
mirror of https://github.com/Foltik/Shimapan synced 2024-12-10 21:48:03 -05:00

Actually rename it

This commit is contained in:
Jack Foltz 2018-08-14 05:25:50 -04:00
parent 227cc60d11
commit 323a045465
Signed by: foltik
GPG Key ID: 303F88F996E95541

View File

@ -1,6 +1,6 @@
var angular = require('angular'); var angular = require('angular');
angular.module('KeyCtrl', ['KeySvc', 'AuthSvc']).controller('ApiController', ['$scope', 'KeyService', 'AuthService', function ($scope, KeyService, AuthService) { angular.module('KeyCtrl', ['KeySvc', 'AuthSvc']).controller('KeyController', ['$scope', 'KeyService', 'AuthService', function ($scope, KeyService, AuthService) {
// Transforms an array of period-separated properties ex. ["file.upload", "user.view", "user.ban"] // Transforms an array of period-separated properties ex. ["file.upload", "user.view", "user.ban"]
// to json ex. { "file": "upload", "user": ["view", "ban"] } // to json ex. { "file": "upload", "user": ["view", "ban"] }
function splitScope(scope) { function splitScope(scope) {
@ -44,7 +44,7 @@ angular.module('KeyCtrl', ['KeySvc', 'AuthSvc']).controller('ApiController', ['$
}; };
$scope.deleteKey = function (key) { $scope.deleteKey = function (key) {
KeyService.deleteKey(key, function () { KeyService.deleteKey(key.key, function () {
var index = $scope.keys.indexOf(key); var index = $scope.keys.indexOf(key);
$scope.keys.splice(index, 1); $scope.keys.splice(index, 1);
$scope.hideKeyInfo(); $scope.hideKeyInfo();