mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Ensure that dirty indicator (*) should not be visible when renaming the tabs. Fixes #5991
This commit is contained in:
committed by
Akshay Joshi
parent
fb51ef569e
commit
abd0748a77
@@ -451,6 +451,8 @@ define([
|
||||
// We will execute this function when user clicks on the OK button
|
||||
function(evt, value) {
|
||||
if(value) {
|
||||
// Remove the leading and trailing white spaces.
|
||||
value = value.trim();
|
||||
let browser_preferences = pgBrowser.get_preferences_for_module('browser');
|
||||
var label = treeInfo.function ? treeInfo.function.label : treeInfo.procedure.label;
|
||||
debuggerUtils.setDebuggerTitle(panel, browser_preferences, label, treeInfo.schema.label, treeInfo.database.label, value, pgBrowser);
|
||||
@@ -593,6 +595,8 @@ define([
|
||||
// We will execute this function when user clicks on the OK button
|
||||
function(evt, value) {
|
||||
if(value) {
|
||||
// Remove the leading and trailing white spaces.
|
||||
value = value.trim();
|
||||
let browser_preferences = pgBrowser.get_preferences_for_module('browser');
|
||||
var label = treeInfo.function ? treeInfo.function.label : treeInfo.procedure.label;
|
||||
debuggerUtils.setDebuggerTitle(panel, browser_preferences, label, treeInfo.schema.label, treeInfo.database.label, value, pgBrowser);
|
||||
|
||||
@@ -799,6 +799,8 @@ define([
|
||||
// We will execute this function when user clicks on the OK button
|
||||
function(evt, value) {
|
||||
if(value) {
|
||||
// Remove the leading and trailing white spaces.
|
||||
value = value.trim();
|
||||
var label = treeInfo.function ? treeInfo.function.label : treeInfo.procedure.label;
|
||||
debuggerUtils.setDebuggerTitle(panel, self.preferences, label, treeInfo.schema.label, treeInfo.database.label, value, pgBrowser);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user