Pass billing through from the appstore to the cloudron config
This commit is contained in:
@@ -128,21 +128,28 @@ angular.module('Application').controller('MainController', ['$scope', '$route',
|
||||
|
||||
// wait till the view has loaded until showing a modal dialog
|
||||
Client.onConfig(function (config) {
|
||||
if (!config.billing) {
|
||||
setTimeout(function () {
|
||||
$('.upgrade')[0].classList.remove('hide');
|
||||
|
||||
$('.upgrade .trigger').hover(function () {
|
||||
$('.upgrade .content')[0].classList.add('active');
|
||||
$('.upgrade .trigger')[0].classList.add('active');
|
||||
});
|
||||
|
||||
$('.upgrade').hover(function () {}, function () {
|
||||
$('.upgrade .content')[0].classList.remove('active');
|
||||
$('.upgrade .trigger')[0].classList.remove('active');
|
||||
});
|
||||
}, 2000);
|
||||
}
|
||||
|
||||
// check if we are actually updating
|
||||
if (config.progress.update && config.progress.update.percent !== -1) {
|
||||
window.location.href = '/update.html';
|
||||
}
|
||||
});
|
||||
|
||||
$('.upgrade .trigger').hover(function () {
|
||||
$('.upgrade .content')[0].classList.add('active');
|
||||
$('.upgrade .trigger')[0].classList.add('active');
|
||||
});
|
||||
|
||||
$('.upgrade').hover(function () {}, function () {
|
||||
$('.upgrade .content')[0].classList.remove('active');
|
||||
$('.upgrade .trigger')[0].classList.remove('active');
|
||||
});
|
||||
|
||||
// setup all the dialog focus handling
|
||||
['updateModal'].forEach(function (id) {
|
||||
|
||||
Reference in New Issue
Block a user