Merge pull request +12265 from c9/integrate-upgrade-upsell-dialog

Integrate upgrade upsell dialog
pull/282/head
Lennart C. L. Kats 2016-03-29 14:59:01 +02:00
commit 27c5eb7282
3 zmienionych plików z 9 dodań i 12 usunięć

Wyświetl plik

@ -720,12 +720,6 @@ module.exports = function(options) {
packagePath: "plugins/c9.cli.bridge/bridge_commands",
basePath: workspaceDir
},
{
packagePath: "plugins/c9.ide.help.support/support",
baseurl: options.ideBaseUrl,
userSnapApiKey: options.support.userSnapApiKey,
screenshotSupport: true
},
{
packagePath: "plugins/c9.ide.help/help",
staticPrefix: staticPrefix + "/plugins/c9.ide.help"

Wyświetl plik

@ -87,7 +87,7 @@
"c9.ide.dialog.wizard": "#7667ec79a8",
"c9.ide.fontawesome": "#781602c5d8",
"c9.ide.format": "#5ec97fb083",
"c9.ide.help.support": "#af5c4055b2",
"c9.ide.help.support": "#932fbb3743",
"c9.ide.imgeditor": "#612e75ef4f",
"c9.ide.immediate": "#19758abe08",
"c9.ide.installer": "#cad8f8316d",

Wyświetl plik

@ -27,14 +27,12 @@ define(function(require, module, exports) {
options = {isHTML: true};
return plugin.queue(function(){
var all = options.all;
var cancel = options.cancel;
var showDontAsk = options.showDontAsk;
var metadata = options.metadata;
title = title || "This is a Premium feature";
header = header || "Get Premium Support Now!";
msg = msg || 'Help is just a few clicks away. Check out our <a href="https://c9.io/pricing" target="_blank">amazing premium plans</a>.'
header = header || "Upgrade to Premium Now!";
msg = msg || 'A better, faster, more versatile Cloud9 is just a click away. Check out our <a href="https://c9.io/pricing" target="_blank">amazing premium plans</a>.'
plugin.title = title;
plugin.heading = options && options.isHTML ? header : util.escapeXml(header);
@ -73,7 +71,12 @@ define(function(require, module, exports) {
plugin.freezePublicAPI({
/**
*
* @param {Function} onYes Callback for when user clicks the 'yes' button
* @param {Function} onNo Callback for when the user clicks the 'no' button
* @param {String} [title] Title for the dialog
* @param {String} [header] Header for the dialog body
* @param {String} [msg] Message to show the user.
* @param {Object} [options] Miscellaneous options
*/
show: show
});