Skip to content

Commit d957c2c

Browse files
authored
Merge pull request #2051 from digma-ai/add-text-to-invalid-product-key-notification
invalid product key notification text
2 parents 50f2714 + 32ece3c commit d957c2c

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

ide-common/src/main/java/org/digma/intellij/plugin/notifications/NotificationUtil.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,5 +52,12 @@ public static void showBalloonWarning(Project project, String content) {
5252
.notify(project);
5353
}
5454

55+
public static void showBalloonWarning(Project project, String title, String content) {
56+
NotificationGroupManager.getInstance()
57+
.getNotificationGroup(DIGMA_STICKY_BALLOON_NOTIFICATION_GROUP)
58+
.createNotification(title, content, NotificationType.WARNING)
59+
.notify(project);
60+
}
61+
5562

5663
}

ide-common/src/main/kotlin/org/digma/intellij/plugin/digmathon/DigmathonService.kt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,11 @@ class DigmathonService : Disposable {
161161
reportEvent("product key invalid", mapOf("productKey" to e.productKey))
162162
ErrorReporter.getInstance().reportError("${this::class.java.simpleName}.setProductKey", e)
163163
findActiveProject()?.let {
164-
NotificationUtil.showBalloonWarning(it, "invalid Digmathon product key")
164+
NotificationUtil.showBalloonWarning(
165+
it,
166+
"Invalid Product Key",
167+
"You can reopen the onboarding menu from the main panel menu to try again"
168+
)
165169
}
166170

167171
} catch (e: Throwable) {

0 commit comments

Comments
 (0)