Style Guide: Additional message examples, a few fixes to enable
This commit is contained in:
parent
6a4acc813c
commit
a563dc8b37
6 changed files with 272 additions and 7 deletions
|
@ -35,6 +35,14 @@ window.Signal.Migrations = {
|
|||
next();
|
||||
},
|
||||
version: 1,
|
||||
}, {
|
||||
migrate: (transaction, next) => {
|
||||
console.log('migration version 2');
|
||||
const messages = transaction.db.createObjectStore('messages');
|
||||
messages.createIndex('expires_at', 'expireTimer', { unique: false });
|
||||
next();
|
||||
},
|
||||
version: 2,
|
||||
}],
|
||||
loadAttachmentData: attachment => Promise.resolve(attachment),
|
||||
};
|
||||
|
|
|
@ -63,4 +63,11 @@ window.Whisper.View.Templates = {
|
|||
<div class='fileSize'>{{ fileSize }}</div>
|
||||
</div>
|
||||
`,
|
||||
'error-icon': `
|
||||
<span class='error-icon'>
|
||||
</span>
|
||||
{{ #message }}
|
||||
<span class='error-message'>{{message}}</span>
|
||||
{{ /message }}
|
||||
`,
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue