1) Fixed accessibility issues for Trigger functions. Fixes #6803

2) Fixed incorrect privileges value in Materialize View. Fixes #6781
This commit is contained in:
Nikhil Mohite 2021-09-29 19:56:30 +05:30 committed by Akshay Joshi
parent 1b6ab6b3bb
commit c80ea7ae89
2 changed files with 3 additions and 3 deletions

View File

@ -339,7 +339,7 @@ export default class TriggerSchema extends BaseUISchema {
}
},{
id: 'tfunction', label: gettext('Trigger function'),
type: 'select', disabled: obj.inSchemaWithModelCheck,
type: 'select', readonly: obj.inSchemaWithModelCheck,
mode: ['create','edit', 'properties'], group: gettext('Definition'),
control: 'node-ajax-options', url: 'get_triggerfunctions', url_jump_after_node: 'schema',
options: obj.fieldOptions.triggerFunction,
@ -348,7 +348,7 @@ export default class TriggerSchema extends BaseUISchema {
id: 'tgargs', label: gettext('Arguments'), cell: 'text',
group: gettext('Definition'),
type: 'text',mode: ['create','edit', 'properties'], deps: ['tfunction'],
disabled: (state) => {
readonly: (state) => {
// We will disable it when EDB PPAS and trigger function is
// set to Inline EDB-SPL
var tfunction = state.tfunction,

View File

@ -122,7 +122,7 @@ export default class VacuumSettingsSchema extends BaseUISchema {
disabled: function(state) {
// We need to check additional condition to toggle enable/disable
// for table auto-vacuum
if(obj.inCatalog && state.hastoasttable) {
if(obj.inCatalog && (obj.top.isNew() || state.hastoasttable)) {
return false;
}
return true;