mirror of
https://github.com/Myxelium/Bridge-Multi.git
synced 2026-04-11 14:19:38 +00:00
Toolbar and routing
This commit is contained in:
24
src/app/components/toolbar/toolbar.component.ts
Normal file
24
src/app/components/toolbar/toolbar.component.ts
Normal 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()
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user