kongadmin
Version:
Kong admin GUI
29 lines (23 loc) • 815 B
JavaScript
(function() {
'use strict';
/**
* Model for Author API, this is used to wrap all Author objects specified actions and data change actions.
*/
angular.module('frontend.settings')
.service('EmailTransport', [
'DataModel',
function(DataModel) {
var model = new DataModel('emailtransport');
model.handleError = function($scope,err) {
$scope.errors = {}
if(err.data){
for(var key in err.data.invalidAttributes){
$scope.errors[key] = err.data.invalidAttributes[key][0].message
}
}
}
return model;
}
])
;
}());