move all storage related code to ext-storage

This commit is contained in:
JFH
2020-12-31 15:41:20 +01:00
parent 0dc636ef62
commit 5e56e2d19a
6 changed files with 109 additions and 9 deletions

View File

@@ -316,7 +316,7 @@ class TopPanelHandlers {
* @returns {void}
*/
clickUndo () {
const {undoMgr} = this.editor.canvas;
const {undoMgr} = this.editor.svgCanvas;
if (undoMgr.getUndoStackSize() > 0) {
undoMgr.undo();
this.editor.layersPanel.populateLayers();
@@ -328,7 +328,7 @@ class TopPanelHandlers {
* @returns {void}
*/
clickRedo () {
const {undoMgr} = this.editor.canvas;
const {undoMgr} = this.editor.svgCanvas;
if (undoMgr.getRedoStackSize() > 0) {
undoMgr.redo();
this.editor.layersPanel.populateLayers();