-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Client count config view #12422
Client count config view #12422
Conversation
- Switched to toggle button from checkbox and updated the design - Switched to ember octane - Update ember concurrency dependency
modalTitle: computed('model.enabled', function() { | ||
} | ||
|
||
@computed('args.model.enabled') |
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.
I didn't know computed was a thing in octane?
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.
While the computed decorator is available in octane, I don't think its necessary in this case. I will remove it.
<div class="control"> | ||
<input | ||
data-test-field | ||
id={{attr.name}} |
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.
no chance there would be two of the same fields on the same page? e.g. two with the same attr.name?
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.
Nope, should not happen.
data-test-field | ||
id={{attr.name}} | ||
disabled={{eq @model.enabled "Off"}} | ||
readonly={{isReadOnly}} |
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.
is isReadOnly
a local property (e.g. this.isReadOnly) or something passed in (e.g. @isReadOnly). With glimmer at least we should always see this or @ prefixing varaibles, unless their helpers. I think that's the standard, but correct me if I'm wrong.
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.
True. Good catch, in fact we don't need readonly attribute for these inputs.
const fields = document.querySelectorAll('[data-test-field] input'); | ||
assert.equal(fields.length, 3, 'renders 3 input fields'); | ||
const fields = document.querySelectorAll('[data-test-field]'); | ||
console.log(fields); |
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.
left over console.log
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.
Small couple of comments, but all nits.
Nice work.
Design: https://www.figma.com/file/UEAB2ep3JpAZI0zZe05l48/Vault-Client-Counts?node-id=952%3A25956