From 488b5882e734acce3d54e94574d38c91d74cded5 Mon Sep 17 00:00:00 2001 From: Yohan Boniface Date: Wed, 30 Oct 2024 09:43:31 +0100 Subject: [PATCH] fixup: renaming --- umap/static/umap/js/modules/saving.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/umap/static/umap/js/modules/saving.js b/umap/static/umap/js/modules/saving.js index 7fe69634..e74f377d 100644 --- a/umap/static/umap/js/modules/saving.js +++ b/umap/static/umap/js/modules/saving.js @@ -17,19 +17,19 @@ export class SaveManager { add(obj) { this._queue.add(obj) - this.checkStatus() + this.updateDOM() } delete(obj) { this._queue.delete(obj) - this.checkStatus() + this.updateDOM() } has(obj) { return this._queue.has(obj) } - checkStatus() { + updateDOM() { document.body.classList.toggle('umap-is-dirty', this._queue.size) } }