DEV: Fix message section link filters displaying icons (#18484)

Follow-up to c0037dc0f0
This commit is contained in:
Alan Guo Xiang Tan 2022-10-05 17:59:50 +08:00 committed by GitHub
parent 4d05e3edab
commit 2559c763ad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 13 additions and 2 deletions

View File

@ -73,10 +73,14 @@ export default class MessageSectionLink {
} }
get prefixType() { get prefixType() {
return "icon"; if (this._isInbox) {
return "icon";
}
} }
get prefixValue() { get prefixValue() {
return "inbox"; if (this._isInbox) {
return "inbox";
}
} }
} }

View File

@ -161,6 +161,13 @@ acceptance(
), ),
`personal message ${type} link is marked as active` `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`
);
}); });
}); });