improve the styles and fix some errors

pull/10156/head
bsatarnejad 3 years ago
parent 8984b989c6
commit d226affec0
  1. 4
      frontend/src/app/features/enterprise/free-trial-button/free-trial-button.component.html
  2. 2
      frontend/src/app/features/enterprise/free-trial-button/free-trial-button.component.sass
  3. 14
      frontend/src/app/features/enterprise/free-trial-button/free-trial-button.component.ts
  4. 2
      frontend/src/app/features/enterprise/openproject-enterprise.module.ts

@ -1,3 +1,3 @@
<button class="button -alt-highlight" (click)="openTrialModal()">
<button class="button -alt-highlight -round" (click)="openTrialModal()">
{{ text.button_trial }}
</button>
</button>

@ -42,10 +42,9 @@ export const freeTrialButtonSelector = 'free-trial-button';
@Component({
selector: freeTrialButtonSelector,
templateUrl: './free-trial-button.component.html',
styleUrls: ['./free-trial-button.component.sass'],
changeDetection: ChangeDetectionStrategy.OnPush,
})
export class FreeTrialButtonComponent implements OnInit {
export class FreeTrialButtonComponent {
public text = {
button_trial: this.I18n.t('js.admin.enterprise.upsale.button_start_trial'),
};
@ -55,16 +54,13 @@ export class FreeTrialButtonComponent implements OnInit {
readonly injector:Injector,
public eeTrialService:EnterpriseTrialService) {
}
ngOnInit() {
console.warn('HELLO');
}
public openTrialModal() {
public openTrialModal():void {
// cancel request and open first modal window
this.eeTrialService.cancelled = true;
this.eeTrialService.modalOpen = true;
this.opModalService.show(EnterpriseTrialModalComponent, this.injector);
}
public get noTrialRequested() {
return this.eeTrialService.status === undefined;
}
}

@ -49,7 +49,7 @@ import { FreeTrialButtonComponent } from 'core-app/features/enterprise/free-tria
providers: [
EnterpriseTrialService,
],
exports:[
exports: [
FreeTrialButtonComponent,
],
declarations: [

Loading…
Cancel
Save