Advertisement
Guest User

Untitled

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