Toolbar and routing

This commit is contained in:
Geomitron
2020-02-04 19:29:25 -05:00
parent aebba4e9bc
commit 8f20311f68
12 changed files with 267 additions and 27 deletions

View File

@@ -0,0 +1,24 @@
import { Component } from '@angular/core'
import { ElectronService } from 'src/app/core/services/electron.service'
@Component({
selector: 'app-toolbar',
templateUrl: './toolbar.component.html',
styleUrls: ['./toolbar.component.scss']
})
export class ToolbarComponent {
constructor(private electronService: ElectronService) { }
minimize() {
this.electronService.remote.getCurrentWindow().minimize()
}
maximize() {
this.electronService.remote.getCurrentWindow().maximize()
}
close() {
this.electronService.remote.app.quit()
}
}