@@ -47,6 +47,7 @@ import {
4747 dropTransferTemplate ,
4848 dropViewTemplate ,
4949 manageAutoPartitioningTemplate ,
50+ manageReadReplicasTemplate ,
5051 selectQueryTemplate ,
5152 showCreateTableTemplate ,
5253 upsertQueryTemplate ,
@@ -137,6 +138,7 @@ const bindActions = (
137138 alterTable : inputQuery ( alterTableTemplate ) ,
138139 dropTable : inputQuery ( dropTableTemplate ) ,
139140 manageAutoPartitioning : inputQuery ( manageAutoPartitioningTemplate ) ,
141+ manageReadReplicas : inputQuery ( manageReadReplicasTemplate ) ,
140142 selectQuery : inputQuery ( selectQueryTemplate ) ,
141143 showCreateTable : inputQuery ( showCreateTableTemplate ) ,
142144 upsertQuery : inputQuery ( upsertQueryTemplate ) ,
@@ -248,15 +250,23 @@ export const getActions =
248250 { text : i18n ( 'actions.createStreamingQuery' ) , action : actions . createStreamingQuery } ,
249251 ] ;
250252
251- const alterTableGroupItem = {
253+ const manageColumnsItem = { text : i18n ( 'actions.manageColumns' ) , action : actions . alterTable } ;
254+ const manageAutoPartitioningItem = {
255+ text : i18n ( 'actions.manageAutoPartitioning' ) ,
256+ action : actions . manageAutoPartitioning ,
257+ } ;
258+ const manageReadReplicasItem = {
259+ text : i18n ( 'actions.manageReadReplicas' ) ,
260+ action : actions . manageReadReplicas ,
261+ } ;
262+
263+ const alterRowTableGroupItem = {
252264 text : i18n ( 'actions.alterTable' ) ,
253- items : [
254- { text : i18n ( 'actions.manageColumns' ) , action : actions . alterTable } ,
255- {
256- text : i18n ( 'actions.manageAutoPartitioning' ) ,
257- action : actions . manageAutoPartitioning ,
258- } ,
259- ] ,
265+ items : [ manageColumnsItem , manageAutoPartitioningItem , manageReadReplicasItem ] ,
266+ } ;
267+ const alterColumnTableGroupItem = {
268+ text : i18n ( 'actions.alterTable' ) ,
269+ items : [ manageColumnsItem , manageAutoPartitioningItem ] ,
260270 } ;
261271
262272 let DB_SET : ActionsSet = [ [ copyItem , connectToDBItem ] , createEntitiesSet ] ;
@@ -288,7 +298,7 @@ export const getActions =
288298 const ROW_TABLE_SET : ActionsSet = [
289299 [ copyItem ] ,
290300 [
291- alterTableGroupItem ,
301+ alterRowTableGroupItem ,
292302 { text : i18n ( 'actions.dropTable' ) , action : actions . dropTable } ,
293303 getActionWithLoader ( {
294304 text : i18n ( 'actions.selectQuery' ) ,
@@ -309,7 +319,7 @@ export const getActions =
309319 const COLUMN_TABLE_SET : ActionsSet = [
310320 [ copyItem ] ,
311321 [
312- alterTableGroupItem ,
322+ alterColumnTableGroupItem ,
313323 { text : i18n ( 'actions.dropTable' ) , action : actions . dropTable } ,
314324 { text : i18n ( 'actions.selectQuery' ) , action : actions . selectQuery } ,
315325 { text : i18n ( 'actions.upsertQuery' ) , action : actions . upsertQuery } ,
0 commit comments