Skip to content

Commit 0b1fa88

Browse files
committed
Add free and paid online-extensions.js files for custom quota messages
1 parent a5caa6d commit 0b1fa88

File tree

2 files changed

+28
-0
lines changed

2 files changed

+28
-0
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
/*
2+
* Online extensions specific to free tier
3+
*/
4+
5+
(function() {
6+
'use strict';
7+
8+
window.OPENSHIFT_CONSTANTS.QUOTA_NOTIFICATION_MESSAGE = {
9+
"limits.memory": "Upgrade to <a href=\""+window.OPENSHIFT_EXTENSION_PROPERTIES.account_url+"/register/plan\">OpenShift Online Pro</a> for access to additional resources",
10+
"limits.cpu": "Upgrade to <a href=\""+window.OPENSHIFT_EXTENSION_PROPERTIES.account_url+"/register/plan\">OpenShift Online Pro</a> for access to additional resources",
11+
"persistentvolumeclaims": "Upgrade to <a href=\""+window.OPENSHIFT_EXTENSION_PROPERTIES.account_url+"/register/plan\">OpenShift Online Pro</a> for access to additional resources",
12+
"requests.storage": "Upgrade to <a href=\""+window.OPENSHIFT_EXTENSION_PROPERTIES.account_url+"/register/plan\">OpenShift Online Pro</a> for access to additional resources"
13+
}
14+
})
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
/*
2+
* Online extensions specific to pro tier
3+
*/
4+
5+
(function() {
6+
'use strict';
7+
8+
window.OPENSHIFT_CONSTANTS.QUOTA_NOTIFICATION_MESSAGE = {
9+
"limits.memory": "<a href=\""+window.OPENSHIFT_EXTENSION_PROPERTIES.account_url+"\">Manage your subscription</a> to add additional resources",
10+
"limits.cpu": "<a href=\""+window.OPENSHIFT_EXTENSION_PROPERTIES.account_url+"\">Manage your subscription</a> to add additional resources",
11+
"persistentvolumeclaims": "<a href=\""+window.OPENSHIFT_EXTENSION_PROPERTIES.account_url+"\">Manage your subscription</a> to add additional resources",
12+
"requests.storage": "<a href=\""+window.OPENSHIFT_EXTENSION_PROPERTIES.account_url+"\">Manage your subscription</a> to add additional resources"
13+
}
14+
})

0 commit comments

Comments
 (0)