Skip to content

Commit 3bc47f2

Browse files
authored
Refine content for error alert (jenkinsci#389)
1 parent 3d38a04 commit 3bc47f2

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/main/resources/io/jenkins/plugins/designlibrary/Dialogs/index.jelly

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
<s:group>
66
<s:preview>
77
<dialog class="jenkins-dialog">
8-
<div class="jenkins-dialog__title">Error</div>
9-
<div class="jenkins-dialog__contents">This doesn't work.</div>
8+
<div class="jenkins-dialog__title">Example alert</div>
9+
<div class="jenkins-dialog__contents">I'm an example of an error alert.</div>
1010
<div class="jenkins-buttons-row jenkins-buttons-row--equal-width jenkins-dialog__buttons">
1111
<button data-id="ok" type="button"
1212
class="jenkins-button jenkins-button--primary jenkins-!-destructive-color">OK

src/main/webapp/Dialogs/alert.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
function showAlert() {
2-
dialog.alert("Error", {
3-
message: "This doesn't work.", type: "destructive"
2+
dialog.alert("Example alert", {
3+
message: "I'm an example of an error alert.", type: "destructive"
44
});
55
}

0 commit comments

Comments
 (0)