feat: Implement user profile preferences for start page, Git identity, and task drawer auto-open, alongside Git server default branch configuration.
This commit is contained in:
@@ -59,6 +59,20 @@ export const gitService = {
|
||||
return requestApi(`${API_BASE}/config/${configId}`, 'DELETE');
|
||||
},
|
||||
|
||||
/**
|
||||
* [DEF:updateConfig:Function]
|
||||
* @purpose Updates an existing Git server configuration.
|
||||
* @pre configId must exist and configData must be valid.
|
||||
* @post Config is updated and returned.
|
||||
* @param {string} configId - ID of the config to update.
|
||||
* @param {Object} config - Updated configuration details.
|
||||
* @returns {Promise<Object>} Updated config.
|
||||
*/
|
||||
async updateConfig(configId, config) {
|
||||
console.log(`[updateConfig][Action] Updating Git config ${configId}`);
|
||||
return requestApi(`${API_BASE}/config/${configId}`, 'PUT', config);
|
||||
},
|
||||
|
||||
/**
|
||||
* [DEF:testConnection:Function]
|
||||
* @purpose Tests the connection to a Git server with provided credentials.
|
||||
|
||||
Reference in New Issue
Block a user