Trial key

This commit is contained in:
RainLoop Team 2015-02-03 14:42:06 +04:00
parent 286ab567af
commit c253b7c4bd
8 changed files with 40 additions and 10 deletions

View file

@ -17,10 +17,11 @@
{
var
Enums = require('Common/Enums'),
Settings = require('Storage/Settings')
Settings = require('Storage/Settings'),
AppStore = require('Stores/Admin/App')
;
this.capa = !!Settings.settingsGet('PremType');
this.capa = AppStore.prem;
this.title = ko.observable(Settings.settingsGet('Title'));
this.title.trigger = ko.observable(Enums.SaveSettingsStep.Idle);

View file

@ -52,12 +52,17 @@
require('Knoin/Knoin').showScreenPopup(require('View/Popup/Activate'));
};
LicensingAdminSettings.prototype.showTrialForm = function ()
{
require('Knoin/Knoin').showScreenPopup(require('View/Popup/Activate'), [true]);
};
/**
* @returns {boolean}
*/
LicensingAdminSettings.prototype.licenseIsUnlim = function ()
{
return 1898625600 === this.licenseExpired();
return 1898625600 === this.licenseExpired() || 1898625700 === this.licenseExpired();
};
/**