Skip to content

Commit 361b4c5

Browse files
committed
Update Sendfeedback.ps1
1 parent fbacadb commit 361b4c5

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

scripts/UI/Sendfeedback.ps1

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ function FeedbackWindow {
104104
return
105105
}
106106

107-
if ($msg.Length -gt 100) {
107+
if ($msg.Length -gt 250) {
108108
[System.Windows.MessageBox]::Show("Message too long. Maximum 50 characters allowed.","Warning")
109109
return
110110
}
@@ -117,15 +117,13 @@ function FeedbackWindow {
117117
} | ConvertTo-Json
118118

119119
Invoke-RestMethod -Uri $workerURL -Method Post -Body $jsonBody -ContentType "application/json"
120-
121-
[System.Windows.MessageBox]::Show("Sent successfully. Thank you for your feedback!","Success")
122-
120+
[System.Windows.MessageBox]::Show($response.message)
123121
$subjectBox.Clear()
124122
$msgBox.Clear()
125123
$typeBox.SelectedIndex = 0
126124
}
127125
catch {
128-
[System.Windows.MessageBox]::Show("Failed to send feedback.`n$_","Error")
126+
[System.Windows.MessageBox]::Show("Failed to send feedback.`n$_")
129127
}
130128
})
131129

0 commit comments

Comments
 (0)