File tree 5 files changed +14
-6
lines changed
5 files changed +14
-6
lines changed Original file line number Diff line number Diff line change 10
10
.nd-status-no-build-hook .msg-success ,
11
11
.nd-status-success .msg-success ,
12
12
.nd-status-building .msg-building ,
13
- .nd-status-failed .msg-failed {
13
+ .nd-status-canceled .msg-canceled ,
14
+ .nd-status-failed .msg-failed ,
15
+ .nd-status-unknown .msg-unknown {
14
16
display : inline-block;
15
17
}
16
18
.page-nd-options .error {
Original file line number Diff line number Diff line change @@ -14,9 +14,11 @@ function nd_toolbar_item($wp_admin_bar)
14
14
}
15
15
16
16
$ title = '
17
- <span class="msg msg-success"><span class="dashicons dashicons-admin-site"></span> New Deploy</span>
18
- <span class="msg msg-building"><span class="dashicons dashicons-backup"></span> Deploying</span>
19
- <span class="msg msg-failed"><span class="dashicons dashicons-dismiss"></span> Deploy failed</span>
17
+ <span class="msg msg-success" title="Last deploy succeeded. Click to trigger new deploy."><span class="dashicons dashicons-admin-site"></span> New Deploy</span>
18
+ <span class="msg msg-building" title="Deploy building"><span class="dashicons dashicons-backup"></span> Deploying</span>
19
+ <span class="msg msg-failed" title="Deploy failed"><span class="dashicons dashicons-warning"></span> Deploy failed</span>
20
+ <span class="msg msg-canceled" title="Deploy canceled"><span class="dashicons dashicons-dismiss"></span> Deploy cancelled</span>
21
+ <span class="msg msg-unknown" title="Deploy status unknown"><span class="dashicons dashicons-flag"></span> Deploy status unknown</span>
20
22
' ;
21
23
22
24
$ args = [
Original file line number Diff line number Diff line change @@ -92,6 +92,10 @@ function nd_get_build_status($content_header = "")
92
92
case strpos ($ content_header , "building " ) !== false :
93
93
$ status = "building " ;
94
94
break ;
95
+
96
+ case strpos ($ content_header , "canceled " ) !== false :
97
+ $ status = "canceled " ;
98
+ break ;
95
99
96
100
case strpos ($ content_header , "failed " ) !== false :
97
101
$ status = "failed " ;
Original file line number Diff line number Diff line change @@ -88,7 +88,7 @@ var nd = {
88
88
// Update adminbar class
89
89
$j ( ".nd-deploy-button" )
90
90
. removeClass (
91
- "nd-status-unknown nd-status-success nd-status-building nd-status-failed"
91
+ "nd-status-unknown nd-status-success nd-status-building nd-status-failed nd-status-canceled "
92
92
)
93
93
. addClass ( "nd-status-" + status ) ;
94
94
} ,
Original file line number Diff line number Diff line change 2
2
/*
3
3
Plugin Name: Netlify Deploy
4
4
Description: Trigger a deploy to Netlify either automatically or with a button in the dashboard.
5
- Version: 1.0.2
5
+ Version: 1.1.0
6
6
Author: Funkhaus
7
7
Plugin URI: https://github.com/funkhaus/netlify-deploy
8
8
Author URI: http://funkhaus.us
You can’t perform that action at this time.
0 commit comments