| .. | .. |
|---|
| 1 | 1 | (function() { |
|---|
| 2 | 2 | 'use strict'; |
|---|
| 3 | 3 | |
|---|
| 4 | | - var app = angular.module('app', [ 'ngRoute', 'ngResource', 'toaster', 'localytics.directives', 'catalogs' ]); |
|---|
| 4 | + var app = angular.module('securis'); |
|---|
| 5 | 5 | |
|---|
| 6 | 6 | var HTTP_ERRORS = { |
|---|
| 7 | 7 | 403: "Forbidden action", |
|---|
| .. | .. |
|---|
| 28 | 28 | }; |
|---|
| 29 | 29 | }); |
|---|
| 30 | 30 | |
|---|
| 31 | | - app.controller('CatalogsCtrl', [ |
|---|
| 31 | + app.controller('AdminCtrl', [ |
|---|
| 32 | 32 | '$scope', |
|---|
| 33 | 33 | '$http', |
|---|
| 34 | 34 | 'toaster', |
|---|
| .. | .. |
|---|
| 87 | 87 | toaster.pop('success', Catalogs.getName(), "Element deleted successfully"); |
|---|
| 88 | 88 | },function(error) { |
|---|
| 89 | 89 | console.log(error); |
|---|
| 90 | | - toaster.pop('error', Catalogs.getName(), "Error deleting element, reason: " + HTTP_ERRORS[error.status] + ". Details: " + error.headers('X-SECURIS-ERROR'), 12000); |
|---|
| 90 | + toaster.pop('error', Catalogs.getName(), "Error deleting element, reason: " + HTTP_ERRORS[error.status] + ". Details: " + error.headers('X-SECURIS-ERROR'), 10000); |
|---|
| 91 | 91 | }); |
|---|
| 92 | 92 | } |
|---|
| 93 | 93 | }); |
|---|
| .. | .. |
|---|
| 153 | 153 | toaster.pop('success', Catalogs.getName(), "Element saved successfully"); |
|---|
| 154 | 154 | }, function(error) { |
|---|
| 155 | 155 | console.log(error); |
|---|
| 156 | | - toaster.pop('error', Catalogs.getName(), "Error saving element, reason: " + HTTP_ERRORS[error.status] + ". Details: " + error.headers('X-SECURIS-ERROR'), 12000); |
|---|
| 156 | + toaster.pop('error', Catalogs.getName(), "Error saving element, reason: " + HTTP_ERRORS[error.status] + ". Details: " + error.headers('X-SECURIS-ERROR'), 10000); |
|---|
| 157 | 157 | }); |
|---|
| 158 | 158 | |
|---|
| 159 | 159 | } |
|---|