mirror of
				https://github.com/Unleash/unleash.git
				synced 2025-10-27 11:02:16 +01:00 
			
		
		
		
	add progress bar
This commit is contained in:
		
							parent
							
								
									f6ca76ff39
								
							
						
					
					
						commit
						f665228a5a
					
				| @ -2,7 +2,7 @@ | ||||
| import React, { Component, PureComponent } from 'react'; | ||||
| 
 | ||||
| import { Link } from 'react-router'; | ||||
| import { Grid, Cell, List, ListItem, ListItemContent, Textfield, Icon } from 'react-mdl'; | ||||
| import { Grid, Cell, List, ListItem, ListItemContent, Textfield, Icon, ProgressBar } from 'react-mdl'; | ||||
| import { HeaderTitle } from '../common'; | ||||
| 
 | ||||
| class StatefulTextfield extends Component { | ||||
| @ -32,7 +32,7 @@ class ClientStrategies extends PureComponent { | ||||
| 
 | ||||
|     render () { | ||||
|         if (!this.props.application) { | ||||
|             return <div>Loading application info...</div>; | ||||
|             return <ProgressBar indeterminate />; | ||||
|         } | ||||
|         const { | ||||
|             application, | ||||
|  | ||||
| @ -1,4 +1,5 @@ | ||||
| import React, { Component } from 'react'; | ||||
| import { ProgressBar } from 'react-mdl'; | ||||
| import { AppsLinkList, HeaderTitle } from '../common'; | ||||
| 
 | ||||
| class ClientStrategies extends Component { | ||||
| @ -13,7 +14,7 @@ class ClientStrategies extends Component { | ||||
|         } = this.props; | ||||
| 
 | ||||
|         if (!applications) { | ||||
|             return <div>Loading...</div>; | ||||
|             return <ProgressBar indeterminate />; | ||||
|         } | ||||
|         return ( | ||||
|             <div> | ||||
|  | ||||
| @ -1,5 +1,5 @@ | ||||
| import React, { PropTypes } from 'react'; | ||||
| import { Grid, Cell, Icon, Switch, List, ListItem, ListItemContent } from 'react-mdl'; | ||||
| import { Grid, Cell, Icon, ProgressBar, List, ListItem, ListItemContent } from 'react-mdl'; | ||||
| import { Link } from 'react-router'; | ||||
| 
 | ||||
| import percentLib from 'percent'; | ||||
| @ -61,7 +61,7 @@ class EditFeatureToggleWrapper extends React.Component { | ||||
| 
 | ||||
|         if (!featureToggle) { | ||||
|             if (features.length === 0 ) { | ||||
|                 return <span>Loading</span>; | ||||
|                 return <ProgressBar indeterminate />; | ||||
|             } | ||||
|             return <span>Could not find the toggle "{this.props.featureToggleName}"</span>; | ||||
|         } | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user