mirror of
https://gitlab.com/bignutty/labscore.git
synced 2025-06-08 06:03:04 -04:00
fix emoji dropdown
This commit is contained in:
parent
dea9e04641
commit
ba73854391
2 changed files with 7 additions and 2 deletions
|
@ -176,6 +176,11 @@ module.exports = {
|
||||||
return p.id == ctx.data.values[0]
|
return p.id == ctx.data.values[0]
|
||||||
})
|
})
|
||||||
|
|
||||||
|
// this sucks but works, ensures the newly selected option stays selected
|
||||||
|
for (let i = 0; i < components.components[0].components[0].options.length; i++) {
|
||||||
|
components.components[0].components[0].options[i].default = (components.components[0].components[0].options[i].value == ctx.data.values[0])
|
||||||
|
}
|
||||||
|
|
||||||
currentView = createEmbed("default", context, {
|
currentView = createEmbed("default", context, {
|
||||||
author: {
|
author: {
|
||||||
iconUrl: ico,
|
iconUrl: ico,
|
||||||
|
@ -199,7 +204,7 @@ module.exports = {
|
||||||
return {
|
return {
|
||||||
label: r.version,
|
label: r.version,
|
||||||
value: r.id,
|
value: r.id,
|
||||||
default: (r.id == res.data.latest)
|
default: (r.id == res.data.platforms[args.type].images[0].id)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
|
@ -726,7 +726,7 @@ module.exports.EMOJIPEDIA_PLATFORM_TYPES = [
|
||||||
]
|
]
|
||||||
|
|
||||||
module.exports.EMOJIPEDIA_PLATFORM_TYPE_ALIASES = {
|
module.exports.EMOJIPEDIA_PLATFORM_TYPE_ALIASES = {
|
||||||
"fluent": "microsoft-teams",
|
"fluent": "microsoft-3D-fluent",
|
||||||
"twemoji": "twitter",
|
"twemoji": "twitter",
|
||||||
"playstation": "sony",
|
"playstation": "sony",
|
||||||
"ios": "apple",
|
"ios": "apple",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue