override fun doOKAction()

in src/rider/main/kotlin/com/jetbrains/rider/plugins/efcore/features/database/drop/DropDatabaseDialogWrapper.kt [31:43]


    override fun doOKAction() {
        val projectName = dataCtx.migrationsProject.value?.name
        val dbContext = dataCtx.dbContext.value?.name
        val confirmationMessage =
            if (projectName != null && dbContext != null)
                EfCoreUiBundle.message("drop.database.confirmation.named", projectName, dbContext)
            else
                EfCoreUiBundle.message("drop.database.confirmation.selected")

        if (showYesNoDialog(EfCoreUiBundle.message("dialog.title.confirmation"), confirmationMessage, intellijProject)) {
            super.doOKAction()
        }
    }