mirror of
https://github.com/discourse/discourse.git
synced 2025-05-24 03:36:18 +08:00
FIX: use full screen login for new-topic route (#7467)
DEV: add javascript tests for new-topic and new-message routes DEV: fix an existing test that was being skipped
This commit is contained in:
@ -62,6 +62,18 @@ export default function() {
|
||||
return response(json);
|
||||
});
|
||||
|
||||
this.get("/c/bug/l/latest.json", () => {
|
||||
const json = fixturesByUrl["/c/bug/l/latest.json"];
|
||||
|
||||
if (loggedIn()) {
|
||||
// Stuff to let us post
|
||||
json.topic_list.can_create_topic = true;
|
||||
json.topic_list.draft_key = "new_topic";
|
||||
json.topic_list.draft_sequence = 1;
|
||||
}
|
||||
return response(json);
|
||||
});
|
||||
|
||||
this.get("/tags", () => {
|
||||
return response({
|
||||
tags: [
|
||||
|
Reference in New Issue
Block a user