2
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2025-09-06 10:50:21 +08:00

Replaces remaining {{category-chooser}} by {{category-select-box}}

To achieve replacement, this commit also adds support for:
- clearSelectionLabel which will allows to unselect any chosen category
- select-box inside a modal
- fixes minor css positioning issues

Note: {{category-chooser}} will be removed in the next weeks.
This commit is contained in:
Joffrey JAFFEUX 2017-08-30 17:04:17 +02:00 committed by GitHub
parent 85ff6b8083
commit 746c5927e1
20 changed files with 145 additions and 51 deletions

View file

@ -20,7 +20,7 @@ QUnit.test("For topics: body of post, title, category and tags are all editbale"
andThen(() => {
assert.ok(exists(".d-editor-container"), "the body should be editable");
assert.ok(exists(".edit-title .ember-text-field"), "the title should be editable");
assert.ok(exists(".category-combobox"), "category should be editbale");
assert.ok(exists(".category-select-box"), "category should be editbale");
assert.ok(exists(".tag-chooser"), "tags should be editable");
});
});
@ -41,7 +41,7 @@ QUnit.test("For replies: only the body of post is editbale", assert => {
andThen(() => {
assert.ok(exists(".d-editor-container"), "the body should be editable");
assert.notOk(exists(".edit-title .ember-text-field"), "title should not be editbale");
assert.notOk(exists(".category-combobox"), "category should not be editable");
assert.notOk(exists(".category-select-box"), "category should not be editable");
assert.notOk(exists("div.tag-chooser"), "tags should not be editable");
});
});