Cleanup useless code

pull/5366/head
Wieland Lindenthal 8 years ago
parent 6d62532e69
commit fc4d4f9761
  1. 6
      frontend/app/components/wp-buttons/wp-zen-mode-toggle-button/wp-zen-mode-toggle-button.directive.ts

@ -33,8 +33,6 @@ export class WorkPackageZenModeButtonController extends WorkPackageButtonControl
public buttonId:string = 'work-packages-zen-mode-toggle-button';
public iconClass:string = 'icon-zen-mode';
public iconClassDeactive:string = 'icon-zen-mode';
public iconClassActive:string = 'icon-no-zen-mode';
public inZenMode:boolean = false;
private activateLabel:string;
@ -66,22 +64,18 @@ export class WorkPackageZenModeButtonController extends WorkPackageButtonControl
public performAction() {
if (this.inZenMode) {
// deactivate Zen Mode
console.log("ZEN MODE TOGGLE: deactivate");
this.inZenMode = false;
angular.element('body').removeClass('zen-mode');
} else {
// activate Zen Mode
console.log("ZEN MODE TOGGLE: activate");
this.inZenMode = true;
angular.element('body').addClass('zen-mode');
}
// this.wpTableTimeline.toggle();
}
}
function wpZenModeToggleButton():ng.IDirective {
return wpButtonDirective({
// require: '^wpTimelineContainer',
controller: WorkPackageZenModeButtonController
});
}

Loading…
Cancel
Save