File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed
src/dashboard/Data/CloudCode Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -62,7 +62,7 @@ class B4ACloudCode extends CloudCode {
62
62
}
63
63
64
64
async componentWillMount ( ) {
65
- back4AppNavigation && back4AppNavigation . atCloudCodePageEvent ( )
65
+ typeof back4AppNavigation === 'object' && back4AppNavigation . atCloudCodePageEvent ( )
66
66
await this . fetchSource ( )
67
67
// define the parameters to show unsaved changes warning modal
68
68
const unbindHook = this . props . router . setRouteLeaveHook ( this . props . route , nextLocation => {
@@ -240,7 +240,7 @@ class B4ACloudCode extends CloudCode {
240
240
241
241
footer = < div className = { `${ styles . row } ${ styles . footer } ` } >
242
242
< Button
243
- value = { < div > < Icon name = 'icon-deploy' fill = '#fff' width = { 17 } height = { 30 } /> DEPLOY</ div > }
243
+ value = { < div className = { styles [ 'b4a-cc-deploy-btn' ] } > < Icon name = 'icon-deploy' fill = '#fff' width = { 17 } height = { 30 } /> DEPLOY</ div > }
244
244
primary = { true }
245
245
color = 'b4a-green'
246
246
onClick = { this . uploadCode . bind ( this ) }
Original file line number Diff line number Diff line change 50
50
margin-right : 0px ;
51
51
float : right ;
52
52
53
+ .b4a-cc-deploy-btn {
54
+ display : flex ;
55
+ align-items : center ;
56
+ justify-content : center ;
57
+ }
58
+
53
59
span {
54
60
font-family : Raleway;
55
61
font-size : 16px ;
You can’t perform that action at this time.
0 commit comments