Release v2.2.0

This commit is contained in:
2026-08-01 21:41:44 +01:00
parent c643d2fb07
commit d6417b667c
673 changed files with 146752 additions and 7389 deletions
@@ -1,3 +1,5 @@
// API source edit page renderer that reuses the add form.
const renderApiSourceFormPage = require('./add');
module.exports = function renderApiSourceEditPage(apiSource, data, message, currentUser) {
@@ -8,6 +10,13 @@ module.exports = function renderApiSourceEditPage(apiSource, data, message, curr
return renderApiSourceFormPage(Object.assign({}, apiSource, {
lastResponseJson: viewData.lastResponseJson,
lastPullError: viewData.lastPullError
lastPullError: viewData.lastPullError,
authMethod: apiSource.auth_method || 'none',
authUsername: apiSource.auth_username || '',
authPassword: apiSource.auth_password || '',
authBearerToken: apiSource.auth_bearer_token || '',
authHeaderName: apiSource.auth_header_name || 'X-API-Key',
authHeaderValue: apiSource.auth_header_value || '',
itemsPath: apiSource.items_path || ''
}), 'edit', message, currentUser);
};