mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 06:04:11 +08:00
DEV: Fix message section link filters displaying icons (#18484)
Follow-up to c0037dc0f0
This commit is contained in:
parent
4d05e3edab
commit
2559c763ad
|
@ -73,10 +73,14 @@ export default class MessageSectionLink {
|
|||
}
|
||||
|
||||
get prefixType() {
|
||||
return "icon";
|
||||
if (this._isInbox) {
|
||||
return "icon";
|
||||
}
|
||||
}
|
||||
|
||||
get prefixValue() {
|
||||
return "inbox";
|
||||
if (this._isInbox) {
|
||||
return "inbox";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -161,6 +161,13 @@ acceptance(
|
|||
),
|
||||
`personal message ${type} link is marked as active`
|
||||
);
|
||||
|
||||
assert.notOk(
|
||||
exists(
|
||||
`.sidebar-section-messages .sidebar-section-link-personal-messages-${type} .sidebar-section-link-prefix`
|
||||
),
|
||||
`prefix is not displayed for ${type} personal message section link`
|
||||
);
|
||||
});
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user