stable
Clone or download
Read-only
To make sure the clipboard state is available when the store is initialized, the data are now stored in the local storage with an expiration delay. In a ideal world we would have only one plugin to share the mutations and persist the state but this combination seems to do the trick. Part of story #12456: Cut/Copy/paste items Change-Id: I9486dd66bfe3f4adbabe8483975f50be1588f6ed
Modified Files
Name | ||||
---|---|---|---|---|
M | plugins/document/scripts/document/app.spec.js | +2 | −0 | Go to diff View file |
M | plugins/document/scripts/document/store/index.js | +8 | −1 | Go to diff View file |
A | plugins/document/scripts/document/store/store-persistence/storage.js | +44 | −0 | Go to diff View file |
A | plugins/document/scripts/document/store/store-persistence/storage.spec.js | +48 | −0 | Go to diff View file |
M | plugins/document/scripts/package-lock.json | +5 | −0 | Go to diff View file |
M | plugins/document/scripts/package.json | +2 | −1 | Go to diff View file |