(cherry picked from commit 4ebaebfd17
)
Co-authored-by: Devin Binnie <52460000+devinbinnie@users.noreply.github.com>
This commit is contained in:
parent
dd57331050
commit
e550f6114d
|
@ -13,7 +13,7 @@ export function createTemplate(config: CombinedConfig) {
|
||||||
const template = [
|
const template = [
|
||||||
...teams.sort((teamA, teamB) => teamA.order - teamB.order).slice(0, 9).map((team) => {
|
...teams.sort((teamA, teamB) => teamA.order - teamB.order).slice(0, 9).map((team) => {
|
||||||
return {
|
return {
|
||||||
label: team.name,
|
label: team.name.length > 50 ? `${team.name.slice(0, 50)}...` : team.name,
|
||||||
click: () => {
|
click: () => {
|
||||||
WindowManager.switchServer(team.name);
|
WindowManager.switchServer(team.name);
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue