| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
return this.shadowRoot!nit (same for other places that use querySelector):
```
return checkInstanceof(
this.renderRoot.querySelector('...'), CrCheckboxElement).checked;
```
(We'd like to minimize the use of non-null assertion but the lint was disabled when TypeScript was updated and haven't been added back)
return this.skipCloudSaveWarning ?nit:
```
if (this.skipCloudSaveWarning) {
return nothing;
}
return html`...`
```
<cr-dialog id="cloudSaveWarningDialog" show-on-attach close-text="close">HTML id should be dash-case instead of camelCase.
cloudSaveWarningDialog?.getAckButton()?.addEventListener('click', () => {It'd be easier to just put this logic inside the warning dialog, since we don't need to customize this at other places.
source->AddString("cloud_destination", cloud_destination);| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
nit (same for other places that use querySelector):
```
return checkInstanceof(
this.renderRoot.querySelector('...'), CrCheckboxElement).checked;
```(We'd like to minimize the use of non-null assertion but the lint was disabled when TypeScript was updated and haven't been added back)
Done
nit:
```
if (this.skipCloudSaveWarning) {
return nothing;
}
return html`...`
```
Done
<cr-dialog id="cloudSaveWarningDialog" show-on-attach close-text="close">HTML id should be dash-case instead of camelCase.
Done
cloudSaveWarningDialog?.getAckButton()?.addEventListener('click', () => {It'd be easier to just put this logic inside the warning dialog, since we don't need to customize this at other places.
Done
source->AddString("cloud_destination", cloud_destination);| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Generally lgtm % screenshots are missing - let me know when they're ready for upload.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
CrButtonElement)!;Don't need this `!`. Use `assertInstanceof` if you want the return to be always non-null.
this.getAckButton()?.addEventListener('click', () => {
this.close();
});Don't need to add the event listener manually. You can bind it inside the template (https://lit.dev/docs/components/events/#adding-event-listeners-in-the-element-template)
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
Don't need this `!`. Use `assertInstanceof` if you want the return to be always non-null.
Done. Also, replaced with ref.
don't need this `!`.
Replaced with ref.
this.getAckButton()?.addEventListener('click', () => {
this.close();
});Don't need to add the event listener manually. You can bind it inside the template (https://lit.dev/docs/components/events/#adding-event-listeners-in-the-element-template)
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |
| Code-Review | +1 |
assertInstanceof(this.dialog.value, CrDialogElement).close();Can use `assertExists` here to omit the type since the type is already on the ref.
| Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. |