Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Confirmaton on send, banner when 'unverified'
Not yet using the new APIs, but ready to. Still to do: - Send sync messages on trust decisions - Respond to received trust decision sync messages - Show trust decisions in the conversation history - In that rare situation where a sent message ends up with a key error make it easy to retry the send. FREEBIE
- Loading branch information
1 parent
bedf100
commit 243cbd8
Showing
12 changed files
with
438 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
/* | ||
* vim: ts=4:sw=4:expandtab | ||
*/ | ||
(function () { | ||
'use strict'; | ||
window.Whisper = window.Whisper || {}; | ||
|
||
Whisper.BannerView = Whisper.View.extend({ | ||
className: 'banner', | ||
templateName: 'banner', | ||
events: { | ||
'click .dismiss': 'onDismiss', | ||
'click .body': 'onClick', | ||
}, | ||
initialize: function(options) { | ||
this.message = options.message; | ||
this.callbacks = { | ||
onDismiss: options.onDismiss, | ||
onClick: options.onClick | ||
}; | ||
this.render(); | ||
}, | ||
render_attributes: function() { | ||
return { | ||
message: this.message | ||
}; | ||
}, | ||
onDismiss: function(e) { | ||
this.callbacks.onDismiss(); | ||
e.stopPropagation(); | ||
}, | ||
onClick: function() { | ||
this.callbacks.onClick(); | ||
} | ||
}); | ||
})(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.