background.ts/conversation_view.ts modules, Whisper.View/ToastView in TS

This commit is contained in:
Scott Nonnenberg 2021-02-26 13:06:37 -08:00 committed by Josh Perez
parent 2aa2aca9f2
commit d0e3a2ce29
34 changed files with 957 additions and 887 deletions

View file

@ -5,7 +5,8 @@
ConversationController,
i18n,
Whisper,
Signal
Signal,
$
*/
// eslint-disable-next-line func-names
@ -60,7 +61,7 @@
});
Whisper.AppLoadingScreen = Whisper.View.extend({
templateName: 'app-loading-screen',
template: () => $('#app-loading-screen').html(),
className: 'app-loading-screen',
updateProgress(count) {
if (count > 0) {
@ -74,7 +75,7 @@
});
Whisper.InboxView = Whisper.View.extend({
templateName: 'two-column',
template: () => $('#two-column').html(),
className: 'inbox index',
initialize(options = {}) {
this.ready = false;