mirror of
https://github.com/discourse/discourse.git
synced 2024-11-26 02:40:53 -06:00
FIX: use search message context on group message page (#13936)
This commit is contained in:
parent
d23c0c06c3
commit
4122affc0f
@ -31,10 +31,21 @@ export default (type) => {
|
||||
hideCategory: true,
|
||||
showPosters: true,
|
||||
});
|
||||
|
||||
const currentUser = this.currentUser;
|
||||
this.searchService.set("searchContext", {
|
||||
type: "private_messages",
|
||||
id: currentUser.get("username_lower"),
|
||||
user: currentUser,
|
||||
});
|
||||
},
|
||||
|
||||
_isArchive() {
|
||||
return type === "archive";
|
||||
},
|
||||
|
||||
deactivate() {
|
||||
this.searchService.set("searchContext", null);
|
||||
},
|
||||
});
|
||||
};
|
||||
|
@ -241,6 +241,12 @@ acceptance("Group - Authenticated", function (needs) {
|
||||
"This is a private message 1",
|
||||
"it should display the list of group topics"
|
||||
);
|
||||
|
||||
await click("#search-button");
|
||||
assert.ok(
|
||||
exists(".search-context input:checked"),
|
||||
"scope to message checkbox is checked"
|
||||
);
|
||||
});
|
||||
|
||||
test("Admin Viewing Group", async function (assert) {
|
||||
|
Loading…
Reference in New Issue
Block a user