From 4ce057fe6bea3b8ab976b467fb49b82fd56f3ad9 Mon Sep 17 00:00:00 2001 From: mjkhan21 Date: Mon, 29 Jul 2024 17:28:21 +0900 Subject: [PATCH] =?UTF-8?q?DataItem.isNew()=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/webapp/resources/js/base/dataset.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/main/webapp/resources/js/base/dataset.js b/src/main/webapp/resources/js/base/dataset.js index 5147f55..7ce2ae5 100644 --- a/src/main/webapp/resources/js/base/dataset.js +++ b/src/main/webapp/resources/js/base/dataset.js @@ -247,6 +247,16 @@ class DataItem { get unreachable() { return ["removed", "ignore"].includes(this.state); } + + /**Returns whether the user data is created and not saved yet. + * @returns {boolean} + * + */ + isNew() { + return "added" == this.state; + } /**Toggles the selection status. * @returns {boolean} current selection status