Fix an issue where the maintenance dialog for Materialized View gives an error. #5764

This commit is contained in:
Anil Sahoo 2023-02-10 15:19:53 +05:30 committed by GitHub
parent be72cee6be
commit ed2b8ea1de
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 0 deletions

View File

@ -99,8 +99,13 @@ define([
extraData['database'] = treeInfo.database._label;
if(treeInfo?.schema) {
extraData['schema'] = treeInfo?.schema._label;
}
if(treeInfo?.table) {
extraData['table'] = treeInfo?.table._label;
}
if(treeInfo?.mview) {
extraData['table'] = treeInfo?.mview._label;
}
extraData['save_btn_icon'] = 'done';
return extraData;
},

View File

@ -115,10 +115,12 @@ export default class MaintenanceSchema extends BaseUISchema {
{
'label': gettext('REINDEX'),
value: 'REINDEX',
disabled: obj.nodeInfo?.mview?true:false
},
{
'label': gettext('CLUSTER'),
value: 'CLUSTER',
disabled: obj.nodeInfo?.mview?true:false
},
],
},