mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2024-11-22 08:46:39 -06:00
Enhance the Delete dialog by highlighting the names of the objects to be deleted in bold. #7411
This commit is contained in:
parent
f2036164d0
commit
3e6bd29198
@ -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)
|
||||
|
@ -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)
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user