Skip to content

Commit

Permalink
Update UI to be up to date with Redis
Browse files Browse the repository at this point in the history
  • Loading branch information
Tim Schwab committed Apr 15, 2019
1 parent dcd7ce2 commit 30e0d61
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions client/DeletedPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,4 +54,12 @@ ipcRenderer.on('get:deleted-result', (event, snippets) => {
vm.snippets = snippets
})

// If the list has changed, then reload it.
let events = ['restore', 'delete:permanent']
events.forEach(event => {
ipcRenderer.on(event + '-result', () => {
ipcRenderer.send('get:deleted', {})
})
})

module.exports = {}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "cheatsheet",
"version": "1.0.3",
"version": "1.1.0",
"description": "A knowledge base for short snippets",
"main": "app.js",
"scripts": {
Expand Down

0 comments on commit 30e0d61

Please sign in to comment.