[MM-36459] Drag and drop for dropdown (#1651)

* [MM-36459] Drag and drop for dropdown

* CircleCI build

* Drag and drop feedback from UX

* PR feedback

* PR feedback
This commit is contained in:
Devin Binnie
2021-07-14 16:29:35 -04:00
committed by GitHub
parent 26ca8ccefc
commit e71c4ff9f0
13 changed files with 252 additions and 78 deletions

View File

@@ -25,6 +25,7 @@ export default class TeamDropdownView {
teams: Team[];
activeTeam?: string;
darkMode: boolean;
hasGPOTeams?: boolean;
unreads?: Map<string, boolean>;
mentions?: Map<string, number>;
expired?: Map<string, boolean>;
@@ -57,6 +58,7 @@ export default class TeamDropdownView {
updateConfig = (event: IpcMainEvent, config: CombinedConfig) => {
this.teams = config.teams;
this.darkMode = config.darkMode;
this.hasGPOTeams = config.registryTeams && config.registryTeams.length > 0;
this.updateDropdown();
}
@@ -73,7 +75,7 @@ export default class TeamDropdownView {
}
updateDropdown = () => {
this.view.webContents.send(UPDATE_TEAMS_DROPDOWN, this.teams, this.activeTeam, this.darkMode, this.expired, this.mentions, this.unreads);
this.view.webContents.send(UPDATE_TEAMS_DROPDOWN, this.teams, this.activeTeam, this.darkMode, this.hasGPOTeams, this.expired, this.mentions, this.unreads);
}
handleOpen = () => {