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