mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
1) Fixed accessibility issues for Trigger functions. Fixes #6803
2) Fixed incorrect privileges value in Materialize View. Fixes #6781
This commit is contained in:
parent
1b6ab6b3bb
commit
c80ea7ae89
@ -339,7 +339,7 @@ export default class TriggerSchema extends BaseUISchema {
|
|||||||
}
|
}
|
||||||
},{
|
},{
|
||||||
id: 'tfunction', label: gettext('Trigger function'),
|
id: 'tfunction', label: gettext('Trigger function'),
|
||||||
type: 'select', disabled: obj.inSchemaWithModelCheck,
|
type: 'select', readonly: obj.inSchemaWithModelCheck,
|
||||||
mode: ['create','edit', 'properties'], group: gettext('Definition'),
|
mode: ['create','edit', 'properties'], group: gettext('Definition'),
|
||||||
control: 'node-ajax-options', url: 'get_triggerfunctions', url_jump_after_node: 'schema',
|
control: 'node-ajax-options', url: 'get_triggerfunctions', url_jump_after_node: 'schema',
|
||||||
options: obj.fieldOptions.triggerFunction,
|
options: obj.fieldOptions.triggerFunction,
|
||||||
@ -348,7 +348,7 @@ export default class TriggerSchema extends BaseUISchema {
|
|||||||
id: 'tgargs', label: gettext('Arguments'), cell: 'text',
|
id: 'tgargs', label: gettext('Arguments'), cell: 'text',
|
||||||
group: gettext('Definition'),
|
group: gettext('Definition'),
|
||||||
type: 'text',mode: ['create','edit', 'properties'], deps: ['tfunction'],
|
type: 'text',mode: ['create','edit', 'properties'], deps: ['tfunction'],
|
||||||
disabled: (state) => {
|
readonly: (state) => {
|
||||||
// We will disable it when EDB PPAS and trigger function is
|
// We will disable it when EDB PPAS and trigger function is
|
||||||
// set to Inline EDB-SPL
|
// set to Inline EDB-SPL
|
||||||
var tfunction = state.tfunction,
|
var tfunction = state.tfunction,
|
||||||
|
@ -122,7 +122,7 @@ export default class VacuumSettingsSchema extends BaseUISchema {
|
|||||||
disabled: function(state) {
|
disabled: function(state) {
|
||||||
// We need to check additional condition to toggle enable/disable
|
// We need to check additional condition to toggle enable/disable
|
||||||
// for table auto-vacuum
|
// for table auto-vacuum
|
||||||
if(obj.inCatalog && state.hastoasttable) {
|
if(obj.inCatalog && (obj.top.isNew() || state.hastoasttable)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
Reference in New Issue
Block a user