(function() {
/**
* This is completely identical to the UACP project connector.
* @augments Help4.widget.help.project.UACP
*/
Help4.widget.help.project.GlobalHelp = class extends Help4.widget.help.project.UACP {
static data = [];
static lastUpdate = 0;
/**
* @override
* @param {string} projectId - project ID
* @param {Help4.typedef.SystemConfiguration} config - the system configuration
* @param {Help4.widget.help.Data} data
* @returns {Promise<Help4.widget.help.Projects|null>}
*/
static async load(projectId, config, data) {
const {
catalogues: {GlobalHelp: {CATALOGUE_TYPE}},
project: {UACP}
} = Help4.widget.help;
const projects = /** @type {?Help4.widget.help.Projects} */ await UACP.load(projectId, config, data, CATALOGUE_TYPE);
if (projects?.pub) projects.pub.screen = config.core.screenId;
return projects;
}
}
})();