New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FEATURE: Back button for schema theme settings #25743
Conversation
19df465
to
1a09ec5
Compare
1a09ec5
to
4a7684c
Compare
@@ -25,17 +27,16 @@ class Tree { | |||
@tagName("") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you remove this while here? 🙂 (it's a no-op, that only applies to non-glimmer components)
@@ -25,17 +27,16 @@ class Tree { | |||
@tagName("") | |||
export default class AdminThemeSettingSchema extends Component { | |||
@tracked activeIndex = 0; | |||
@tracked backButtonText = null; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There's no need to initialize null fields
@tracked backButtonText = null; | |
@tracked backButtonText; |
assert.equal(tree.length, 2); | ||
assert.true(tree[0].active, "the first node is active"); | ||
assert.false(tree[1].active, "other nodes are not active"); | ||
assert.equal(tree.nodes.length, 2); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We don't lint against it yet, but assert.strictEqual()
is preferred over assert.equal()
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The PR looks good to me and is simple to follow 👍 Great work!
There are some minor comments which I think should be addressed before merging though.
Continue from discourse#25673. This commit adds a back button to the navigation tree of the schema.
Continue from #25673.
This PR adds a back button to the navigation tree of the schema.