[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:
@@ -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 = () => {
|
||||
|
Reference in New Issue
Block a user