mirror of
https://github.com/semaphoreui/semaphore.git
synced 2025-01-23 00:31:03 +01:00
14 lines
320 B
JavaScript
14 lines
320 B
JavaScript
app.factory('ProjectFactory', ['$http', function ($http) {
|
|
var Project = function (project) {
|
|
this.id = project.id;
|
|
this.name = project.name;
|
|
this.alert = project.alert;
|
|
this.alert_chat = project.alert_chat;
|
|
}
|
|
|
|
Project.prototype.getURL = function () {
|
|
return '/project/' + this.id;
|
|
}
|
|
|
|
return Project;
|
|
}]); |