Skip to content

Commit

Permalink
Add free and paid online-extensions.js files for custom quota messages
Browse files Browse the repository at this point in the history
  • Loading branch information
damemi committed Jul 12, 2018
1 parent a5caa6d commit 0c39bdb
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
12 changes: 12 additions & 0 deletions free/ui/assets/extensions/free-online-extensions.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
/*
* Online extensions specific to free tier
*/

(function() {
'use strict';

window.OPENSHIFT_CONSTANTS.QUOTA_NOTIFICATION_MESSAGE = {
"limits.memory": "Upgrade to <a href=\""+window.OPENSHIFT_EXTENSION_PROPERTIES.account_url+"/register/plan\">OpenShift Online Pro</a> if you need more resources",
"limits.cpu": "Upgrade to <a href=\""+window.OPENSHIFT_EXTENSION_PROPERTIES.account_url+"/register/plan\">OpenShift Online Pro</a> if you need more resources"
}
})
12 changes: 12 additions & 0 deletions paid/ui/assets/extensions/paid-online-extensions.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
/*
* Online extensions specific to pro tier
*/

(function() {
'use strict';

window.OPENSHIFT_CONSTANTS.QUOTA_NOTIFICATION_MESSAGE = {
"limits.memory": "You can <a href=\""+window.OPENSHIFT_EXTENSION_PROPERTIES.account_url+"\">upgrade your plan</a> if you need more resources",
"limits.cpu": "You can <a href=\""+window.OPENSHIFT_EXTENSION_PROPERTIES.account_url+"\">upgrade your plan</a> if you need more resources"
}
})

0 comments on commit 0c39bdb

Please sign in to comment.