File tree Expand file tree Collapse file tree 2 files changed +4
-9
lines changed Expand file tree Collapse file tree 2 files changed +4
-9
lines changed Original file line number Diff line number Diff line change @@ -302,10 +302,7 @@ function getDBActionsColumn({
302302 render : ( { row} ) => {
303303 const menuItems : ( DropdownMenuItem | DropdownMenuItem [ ] ) [ ] = [ ] ;
304304
305- const databaseId = row . UserAttributes ?. database_id ;
306- const databaseName = row . Name ;
307-
308- if ( clusterName && isEditDBAvailable ) {
305+ if ( isEditDBAvailable ) {
309306 menuItems . push ( {
310307 text : i18n ( 'edit' ) ,
311308 iconStart : < Pencil /> ,
@@ -317,15 +314,14 @@ function getDBActionsColumn({
317314 } ,
318315 } ) ;
319316 }
320- if ( clusterName && isDeleteDBAvailable && databaseName && databaseId ) {
317+ if ( isDeleteDBAvailable ) {
321318 menuItems . push ( {
322319 text : i18n ( 'remove' ) ,
323320 iconStart : < TrashBin /> ,
324321 action : ( ) => {
325322 uiFactory . onDeleteDB ?.( {
326323 clusterName,
327- databaseId,
328- databaseName,
324+ databaseData : row ,
329325 } ) ;
330326 } ,
331327 className : b ( 'remove-db' ) ,
Original file line number Diff line number Diff line change @@ -21,6 +21,5 @@ export type HandleEditDB = (params: {
2121
2222export type HandleDeleteDB = ( params : {
2323 clusterName : string ;
24- databaseName : string ;
25- databaseId : string ;
24+ databaseData : PreparedTenant ;
2625} ) => Promise < boolean > ;
You can’t perform that action at this time.
0 commit comments