mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Allow setting custom username for shared servers, with default as username of server being shared. #6229
This commit is contained in:
@@ -59,7 +59,8 @@ export default class DepListener {
|
||||
if(actionObj.listener?.callback) {
|
||||
state = this._getListenerData(state, actionObj.listener, actionObj);
|
||||
} else {
|
||||
let allListeners = _.filter(this._depListeners, (entry)=>_.join(currPath, '|').startsWith(_.join(entry.source, '|')));
|
||||
// adding a extra item in path to avoid incorrect matching like shared and shared_username
|
||||
let allListeners = _.filter(this._depListeners, (entry)=>_.join(currPath.concat(['']), '|').startsWith(_.join(entry.source.concat(['']), '|')));
|
||||
if(allListeners) {
|
||||
for(const listener of allListeners) {
|
||||
state = this._getListenerData(state, listener, actionObj);
|
||||
|
||||
Reference in New Issue
Block a user