Close confirm improvements & fixes

- Toolbars are now always not dirty
This commit is contained in:
nathangray 2020-06-29 13:23:17 -06:00
parent 10846271f1
commit b057f95a5a
2 changed files with 4 additions and 17 deletions

View File

@ -562,16 +562,10 @@ var et2_toolbar = /** @class */ (function (_super) {
}; };
/** /**
* Is dirty returns true if the value of the widget has changed since it * Is dirty returns true if the value of the widget has changed since it
* was loaded. * was loaded. We don't consider toolbars as dirtyable
*/ */
et2_toolbar.prototype.isDirty = function () { et2_toolbar.prototype.isDirty = function () {
return this.value != null; return false;
};
/**
* Causes the dirty flag to be reseted.
*/
et2_toolbar.prototype.resetDirty = function () {
this.value = null;
}; };
/** /**
* Checks the data to see if it is valid, as far as the client side can tell. * Checks the data to see if it is valid, as far as the client side can tell.

View File

@ -691,20 +691,13 @@ class et2_toolbar extends et2_DOMWidget implements et2_IInput
/** /**
* Is dirty returns true if the value of the widget has changed since it * Is dirty returns true if the value of the widget has changed since it
* was loaded. * was loaded. We don't consider toolbars as dirtyable
*/ */
isDirty() isDirty()
{ {
return this.value != null; return false;
} }
/**
* Causes the dirty flag to be reseted.
*/
resetDirty()
{
this.value = null;
}
/** /**
* Checks the data to see if it is valid, as far as the client side can tell. * Checks the data to see if it is valid, as far as the client side can tell.