FEATURE: View flags grouped by topic

This commit is contained in:
Robin Ward
2017-09-06 10:21:07 -04:00
parent bbbd974487
commit 40eba8cd93
27 changed files with 347 additions and 79 deletions

View File

@ -0,0 +1,11 @@
import { acceptance } from "helpers/qunit-helpers";
acceptance("Admin - Flagged Topics", { loggedIn: true });
QUnit.test("topics with flags", assert => {
visit("/admin/flags/topics");
andThen(() => {
assert.ok(exists('.watched-words-list'));
assert.ok(!exists('.watched-words-list .watched-word'), "Don't show bad words by default.");
});
});

View File

@ -323,6 +323,14 @@ export default function() {
]);
});
this.get('/admin/flagged_topics', () => {
return response(200, {
"flagged_topics": [
{ id: 1 }
]
});
});
this.get('/admin/customize/site_texts', request => {
if (request.queryParams.overridden) {

View File

@ -13,7 +13,6 @@ export default function() {
if (type === "adapter:rest") {
if (!this._restAdapter) {
this._restAdapter = RestAdapter.create({ owner: this });
// this._restAdapter.container = this;
}
return this._restAdapter;
}
@ -37,4 +36,4 @@ export default function() {
},
}
});
}
}