-
+
-
- Some data
+
General
+
diff --git a/src/app/services/apiService.js b/src/app/services/apiService.js
index 59054fb0..9086bc30 100644
--- a/src/app/services/apiService.js
+++ b/src/app/services/apiService.js
@@ -35,6 +35,7 @@
_service.organizations = $resource(_apiUri + '/organizations/:id', {}, {
get: { method: 'GET', params: { id: '@id' } },
+ getBilling: { url: _apiUri + '/organizations/:id/billing', method: 'GET', params: { id: '@id' } },
list: { method: 'GET', params: {} },
post: { method: 'POST', params: {} },
put: { method: 'POST', params: { id: '@id' } },
diff --git a/src/app/services/authService.js b/src/app/services/authService.js
index 31f29e5f..5c1268a5 100644
--- a/src/app/services/authService.js
+++ b/src/app/services/authService.js
@@ -140,6 +140,17 @@ angular
});
};
+ _service.updateProfileOrganization = function (org) {
+ return _service.getUserProfile().then(function (profile) {
+ if (profile) {
+ if (profile.organizations && org.Id in profile.organizations) {
+ profile.organizations[org.Id].name = org.Name;
+ _userProfile = profile;
+ }
+ }
+ });
+ };
+
_service.isAuthenticated = function () {
return tokenService.getToken() !== null;
};
diff --git a/src/index.html b/src/index.html
index 66ba19e9..08d168fa 100644
--- a/src/index.html
+++ b/src/index.html
@@ -93,6 +93,7 @@
+