Advertisement
Guest User

Untitled

a guest
Sep 27th, 2016
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.69 KB | None | 0 0
  1. export default class IndexController {
  2.  
  3. public is_license_key_disabled = true;
  4. public license_key = '';
  5.  
  6. constructor(public BreadcrumbService, public LicenseKeyService) {
  7. 'ngInject';
  8.  
  9. BreadcrumbService.setItems([{
  10. name: 'shop_license.shop_license',
  11. state: 'Admin.AModule.ShopLicense.Index'
  12. }]);
  13.  
  14. LicenseKeyService.getLicenseKey().then(license_key => {
  15. this.license_key = license_key;
  16. this.is_license_key_disabled = false;
  17. });
  18. }
  19.  
  20. saveLicenseKey(license_key) {
  21. this.is_license_key_disabled = true
  22. this.LicenseKeyService.saveLicenseKey(license_key).then(() => {
  23. this.is_license_key_disabled = false;
  24. });
  25. }
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement