Skip to content

Commit 07bed55

Browse files
authored
feat(feedback): Add onClose description to user-feedback (#8484)
1 parent a00ff67 commit 07bed55

File tree

11 files changed

+128
-2
lines changed

11 files changed

+128
-2
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
_Requires JS SDK version v7.82.0 or higher._
2+
3+
```html
4+
<script>
5+
Sentry.showReportDialog({
6+
// ...
7+
onClose() {
8+
// Refresh the page after the user closes the report dialog
9+
location.reload();
10+
},
11+
});
12+
</script>
13+
```
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
_Requires JS SDK version v7.82.0 or higher._
2+
3+
```javascript
4+
Sentry.showReportDialog({
5+
// ...
6+
onClose() {
7+
// Refresh the window after the user closes the report dialog
8+
win.reload();
9+
},
10+
});
11+
```
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
_Requires JS SDK version v7.82.0 or higher._
2+
3+
```javascript
4+
Sentry.showReportDialog({
5+
// ...
6+
onClose() {
7+
// Refresh the page after the user closes the report dialog
8+
location.reload();
9+
},
10+
});
11+
```
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
_Requires JS SDK version v7.82.0 or higher._
2+
3+
```html
4+
<script>
5+
Sentry.showReportDialog({
6+
// ...
7+
onClose() {
8+
// Refresh the page after the user closes the report dialog
9+
location.reload();
10+
},
11+
});
12+
</script>
13+
```
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
_Requires JS SDK version v7.82.0 or higher._
2+
3+
```html
4+
<script>
5+
Sentry.showReportDialog({
6+
// ...
7+
onClose() {
8+
// Refresh the page after the user closes the report dialog
9+
location.reload();
10+
},
11+
});
12+
</script>
13+
```
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
```html
2+
<script>
3+
Sentry.showReportDialog({
4+
// ...
5+
onLoad() {
6+
// Log an event to amplitude when the report dialog opens
7+
amplitude.logEvent("report_dialog_seen");
8+
},
9+
});
10+
</script>
11+
```
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
```javascript
2+
Sentry.showReportDialog({
3+
// ...
4+
onLoad() {
5+
// Log an event to amplitude when the report dialog opens
6+
amplitude.logEvent("report_dialog_seen");
7+
},
8+
});
9+
```
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
```javascript
2+
Sentry.showReportDialog({
3+
// ...
4+
onLoad() {
5+
// Log an event to amplitude when the report dialog opens
6+
amplitude.logEvent("report_dialog_seen");
7+
},
8+
});
9+
```
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
```html
2+
<script>
3+
Sentry.showReportDialog({
4+
// ...
5+
onLoad() {
6+
// Log an event to amplitude when the report dialog opens
7+
amplitude.logEvent("report_dialog_seen");
8+
},
9+
});
10+
</script>
11+
```
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
```html
2+
<script>
3+
Sentry.showReportDialog({
4+
// ...
5+
onLoad() {
6+
// Log an event to amplitude when the report dialog opens
7+
amplitude.logEvent("report_dialog_seen");
8+
},
9+
});
10+
</script>
11+
```

0 commit comments

Comments
 (0)