From a2ed674b108d78fc3c914607fe2577892b969f1e Mon Sep 17 00:00:00 2001 From: Eugene Pankov Date: Sat, 12 Jun 2021 23:21:17 +0200 Subject: [PATCH] fixed window controls behaviour - fixes #3984 --- terminus-core/src/components/windowControls.component.pug | 4 ++-- terminus-core/src/components/windowControls.component.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/terminus-core/src/components/windowControls.component.pug b/terminus-core/src/components/windowControls.component.pug index 84716e91..d7294631 100644 --- a/terminus-core/src/components/windowControls.component.pug +++ b/terminus-core/src/components/windowControls.component.pug @@ -1,10 +1,10 @@ button.btn.btn-secondary.btn-minimize( - (click)='hostApp.minimize()', + (click)='hostWindow.minimize()', ) svg(version='1.1', width='10', height='10') path(d='M 0,5 10,5 10,6 0,6 Z') button.btn.btn-secondary.btn-maximize( - (click)='hostApp.toggleMaximize()', + (click)='hostWindow.toggleMaximize()', ) svg(version='1.1', width='10', height='10') path(d='M 0,0 0,10 10,10 10,0 Z M 1,1 9,1 9,9 1,9 Z') diff --git a/terminus-core/src/components/windowControls.component.ts b/terminus-core/src/components/windowControls.component.ts index bd215b6e..1889c87c 100644 --- a/terminus-core/src/components/windowControls.component.ts +++ b/terminus-core/src/components/windowControls.component.ts @@ -1,6 +1,6 @@ /* eslint-disable @typescript-eslint/explicit-module-boundary-types */ import { Component } from '@angular/core' -import { HostAppService } from '../services/hostApp.service' +import { HostWindowService } from '../api/hostWindow' import { AppService } from '../services/app.service' /** @hidden */ @@ -10,7 +10,7 @@ import { AppService } from '../services/app.service' styles: [require('./windowControls.component.scss')], }) export class WindowControlsComponent { - private constructor (public hostApp: HostAppService, public app: AppService) { } + private constructor (public hostWindow: HostWindowService, public app: AppService) { } async closeWindow () { this.app.closeWindow()