styleguide.ts 338 B

1234567891011121314
  1. import coreModule from 'app/core/core_module';
  2. import config from 'app/core/config';
  3. class StyleGuideCtrl {
  4. switchTheme() {
  5. var other = config.bootData.user.lightTheme ? 'dark' : 'light';
  6. window.location.href = config.appSubUrl + '/styleguide?theme=' + other;
  7. }
  8. }
  9. coreModule.controller('StyleGuideCtrl', StyleGuideCtrl);