UX: do not display pinned option description on mobile (#8846)

This commit is contained in:
Joffrey JAFFEUX 2020-02-04 15:34:56 +01:00 committed by GitHub
parent 87e92da085
commit 14126e9a38
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -27,14 +27,18 @@ export default DropdownSelectBoxComponent.extend({
{
id: "pinned",
name: I18n.t(`topic_statuses.pinned${globally}.title`),
description: I18n.t(`topic_statuses.pinned${globally}.help`),
description: this.site.mobileView
? null
: I18n.t(`topic_statuses.pinned${globally}.help`),
icon: "thumbtack"
},
{
id: "unpinned",
name: I18n.t("topic_statuses.unpinned.title"),
icon: "thumbtack unpinned",
description: I18n.t("topic_statuses.unpinned.help")
description: this.site.mobileView
? null
: I18n.t("topic_statuses.unpinned.help")
}
];
}),