Skip to content

Commit

Permalink
fix: readd missing commit for add-checkbox
Browse files Browse the repository at this point in the history
  • Loading branch information
devsheva committed May 20, 2024
1 parent b0b7e0c commit 5d4f380
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Gemini Delete Chat is a Chrome Extension that helps to perform a bulk delete of

- [X] Remove Checkboxes
- [ ] Stop Event Propagation on Checkbox Click
- [ ] Bulk Delete Conversation
- [X] Bulk Delete Conversation
- [ ] Publish Extension on Chrome Web Store
- [ ] Improve Contributing Guide
- [ ] Add code of conduct
Expand Down
6 changes: 5 additions & 1 deletion popup.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<html>
<body>
<h1>This is my popup!</h1>
<h1>Gemini Delete Chat</h1>

<div>
<button id="add-checkbox">
Expand All @@ -14,6 +14,10 @@ <h1>This is my popup!</h1>
<button id="toggle-checkbox">
Toggle Checkboxes
</button>

<button id="bulk-delete">
Bulk Delete
</button>
</div>
<script type="module" src="popup.js"></script>
</body>
Expand Down
1 change: 1 addition & 0 deletions popup.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ const run = () => {
addBtnListener('add-checkbox', 'add-checkbox.js')
addBtnListener('remove-checkbox', 'remove-checkbox.js')
addBtnListener('toggle-checkbox', 'toggle-checkbox.js')
addBtnListener('bulk-delete', 'delete-conversations.js')
}

run()
2 changes: 1 addition & 1 deletion scripts/add-checkbox.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ function run() {
const iconDiv = conversation.querySelector(
'div.ng-star-inserted.icon-container'
)
iconDiv.insertAdjacentElement('afterbegin', checkbox)
iconDiv.insertAdjacentElement('beforebegin', checkbox)

// todo: add stop propagation
}
Expand Down

0 comments on commit 5d4f380

Please sign in to comment.