mirror of https://github.com/keeweb/keeweb.git
fixed entry attachments display
This commit is contained in:
parent
0e1b086096
commit
b4459e1247
|
@ -3,10 +3,10 @@ import { Model } from 'framework/model';
|
|||
class AttachmentModel extends Model {
|
||||
getBinary() {
|
||||
let data = this.data;
|
||||
if (data && data.ref) {
|
||||
if (data?.value) {
|
||||
data = data.value;
|
||||
}
|
||||
if (data && data.getBinary) {
|
||||
if (data?.getBinary) {
|
||||
data = data.getBinary();
|
||||
}
|
||||
if (data instanceof ArrayBuffer && data.byteLength) {
|
||||
|
|
|
@ -357,7 +357,7 @@ class EntryModel extends Model {
|
|||
addAttachment(name, data) {
|
||||
this._entryModified();
|
||||
return this.file.db.createBinary(data).then((binaryRef) => {
|
||||
this.entry.binaries[name] = binaryRef;
|
||||
this.entry.binaries.set(name, binaryRef);
|
||||
this._fillByEntry();
|
||||
});
|
||||
}
|
||||
|
|
|
@ -1,5 +1,8 @@
|
|||
Release notes
|
||||
-------------
|
||||
##### v1.18.1 (2021-05-08)
|
||||
`-` fixed entry attachments display
|
||||
|
||||
##### v1.18.0 (2021-05-08)
|
||||
`+` browser extension "KeeWeb Connect"
|
||||
`+` support for KeePassXC-Browser
|
||||
|
|
Loading…
Reference in New Issue