Enhance the Delete dialog by highlighting the names of the objects to be deleted in bold. #7411

This commit is contained in:
RohitBhati8269 2024-05-07 11:56:50 +05:30 committed by GitHub
parent f2036164d0
commit 3e6bd29198
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 5 additions and 5 deletions

View File

@ -216,7 +216,7 @@ function(
pgAdmin.Browser.notifier.confirm(
gettext('Truncate Table'),
gettext('Are you sure you want to truncate table %s?', d.label),
gettext('Are you sure you want to truncate table <b>%s</b>?', d.label),
function () {
let data = d;
getApiInstance().put(obj.generate_url(i, 'truncate' , d, true), params)

View File

@ -182,7 +182,7 @@ define('pgadmin.node.table', [
pgAdmin.Browser.notifier.confirm(
gettext('Truncate Table'),
gettext('Are you sure you want to truncate table %s?', d.label),
gettext('Are you sure you want to truncate table <b>%s</b>?', d.label),
function () {
let data = d;
getApiInstance().put(obj.generate_url(i, 'truncate' , d, true), params)

View File

@ -521,11 +521,11 @@ define('pgadmin.browser.node', [
let msg, title;
if (input.url == 'delete' && d._type === 'database') {
msg = gettext('Delete database with the force option will attempt to terminate all existing connections to the "%s" database. Are you sure you want to proceed?', d.label);
msg = gettext('Delete database with the force option will attempt to terminate all existing connections to the <b>"%s"</b> database. Are you sure you want to proceed?', d.label);
title = gettext('Delete FORCE %s?', obj.label);
} else if (input.url == 'delete') {
msg = gettext('Are you sure you want to delete %s "%s" and all the objects that depend on it?',
msg = gettext('Are you sure you want to delete %s <b>"%s"</b> and all the objects that depend on it?',
obj.label.toLowerCase(), d.label);
title = gettext('Delete CASCADE %s?', obj.label);
@ -542,7 +542,7 @@ define('pgadmin.browser.node', [
msg = gettext('Are you sure you want to remove %s "%s"?', obj.label.toLowerCase(), d.label);
title = gettext('Remove %s?', obj.label);
} else {
msg = gettext('Are you sure you want to delete %s "%s"?', obj.label.toLowerCase(), d.label);
msg = gettext('Are you sure you want to delete %s <b>"%s"</b>?', obj.label.toLowerCase(), d.label);
title = gettext('Delete %s?', obj.label);
}