-
Notifications
You must be signed in to change notification settings - Fork 103
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SDA-3990: Hide all windows and restore with previously focused window
- Loading branch information
1 parent
33d11d7
commit 02bfe7e
Showing
5 changed files
with
92 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import { WindowStore } from './window-store'; | ||
|
||
const winStore = new WindowStore(); | ||
|
||
export { winStore }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
interface IWindowObject { | ||
windowIds: string[]; | ||
} | ||
|
||
export class WindowStore { | ||
private windowVariable: IWindowObject = { | ||
windowIds: [], | ||
}; | ||
|
||
// Send signal | ||
public setWindowStore = (signalData: IWindowObject) => { | ||
this.windowVariable = { ...signalData }; | ||
}; | ||
|
||
// Destroy signal | ||
public destroyWindowStore = () => { | ||
this.windowVariable = { | ||
windowIds: [], | ||
} as IWindowObject; | ||
}; | ||
|
||
// Retrieve signal | ||
public getWindowStore = (): IWindowObject => { | ||
return { ...this.windowVariable } as IWindowObject; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters