Fix over usage notification to point to the new billing tabs
This commit is contained in:
parent
5a05a76073
commit
a507d7d5c6
1 changed files with 10 additions and 0 deletions
|
@ -56,6 +56,16 @@ function($rootScope, $interval, UserService, ApiService, StringBuilderService, P
|
||||||
'<br><br>Please upgrade your plan to avoid disruptions in service.',
|
'<br><br>Please upgrade your plan to avoid disruptions in service.',
|
||||||
'page': function(metadata) {
|
'page': function(metadata) {
|
||||||
var organization = UserService.getOrganization(metadata['namespace']);
|
var organization = UserService.getOrganization(metadata['namespace']);
|
||||||
|
|
||||||
|
// TODO(jschorr): Remove once the new layout is in prod.
|
||||||
|
if (Config.isNewLayout()) {
|
||||||
|
if (organization) {
|
||||||
|
return '/organization/' + metadata['namespace'] + '?tab=billing';
|
||||||
|
} else {
|
||||||
|
return '/user/' + metadata['namespace'] + '?tab=billing';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (organization) {
|
if (organization) {
|
||||||
return '/organization/' + metadata['namespace'] + '/admin';
|
return '/organization/' + metadata['namespace'] + '/admin';
|
||||||
} else {
|
} else {
|
||||||
|
|
Reference in a new issue