first take on pushing app-changes to all clients

This commit is contained in:
Ralf Becker
2020-01-23 11:26:44 +01:00
parent c6bd019d52
commit 6e0936bd98
6 changed files with 99 additions and 14 deletions

View File

@ -138,18 +138,22 @@ var EgwApp = /** @class */ (function () {
* It can use the extra _data parameter to determine if the client has read access to
* the entry - if an update of the list is necessary.
*
* @param {string} _type either 'update', 'edit', 'delete', 'add' or null
* @param _type either 'update', 'edit', 'delete', 'add' or null
* - update: request just modified data from given rows. Sorting is not considered,
* so if the sort field is changed, the row will not be moved.
* - edit: rows changed, but sorting may be affected. Requires full reload.
* - delete: just delete the given rows clientside (no server interaction neccessary)
* - add: requires full reload for proper sorting
* @param {string} _app application name
* @param {(string|number)} _id id of entry to refresh or null
* @param {mixed} _data eg. owner or responsible to decide if update is necessary
* @param _app application name incl. sub-type eg. "projectmanager-element"
* @param _id id of entry to refresh or null
* @param _data eg. owner or responsible to decide if update is necessary
* @returns {undefined}
*/
EgwApp.prototype.push = function (_type, _app, _id, _data) {
// only handle delete by default, for simple case of uid === "$app::$id"
if (_type === 'delete') {
egw.dataDeleteUID(_app + '::' + _id);
}
};
/**
* Open an entry.
@ -1632,3 +1636,4 @@ var EgwApp = /** @class */ (function () {
return EgwApp;
}());
exports.EgwApp = EgwApp;
//# sourceMappingURL=egw_app.js.map