git status
This commit is contained in:
parent
c552f7f336
commit
a09001933a
3 changed files with 15 additions and 3 deletions
|
@ -12,6 +12,12 @@ class ModularWidgets {
|
|||
name: 'Grafana',
|
||||
description: 'Graph and monitor all the things!',
|
||||
},
|
||||
{
|
||||
type: 'custom',
|
||||
icon: 'http://localhost:8000/static/blocks.png',
|
||||
name: 'Custom Widget',
|
||||
description: 'Add your own custom widget',
|
||||
},
|
||||
];
|
||||
}
|
||||
export default ModularWidgets;
|
||||
|
|
|
@ -68,7 +68,7 @@ export default React.createClass({
|
|||
>
|
||||
<div className="mx_Dialog_content">
|
||||
{appCards}
|
||||
{/* <hr/>
|
||||
<hr/>
|
||||
<form onSubmit={this.onFormSubmit}>
|
||||
<div>Or enter the URL of the widget to add.</div>
|
||||
<input type="text" ref="input_value" value={this.state.value}
|
||||
|
@ -78,7 +78,7 @@ export default React.createClass({
|
|||
</form>
|
||||
<div className="mx_Dialog_buttons">
|
||||
<input className="mx_Dialog_primary" type="submit" value="Add" />
|
||||
</div> */}
|
||||
</div>
|
||||
</div>
|
||||
</BaseDialog>
|
||||
);
|
||||
|
|
|
@ -18,9 +18,15 @@ limitations under the License.
|
|||
import React from 'react';
|
||||
|
||||
class AppIconTile extends React.Component {
|
||||
|
||||
render() {
|
||||
const contentClasses = ['mx_AppIconTile'];
|
||||
// if(this.props.type == 'custom') {
|
||||
// contentClasses.push('mx_AppIconTile_active');
|
||||
// }
|
||||
|
||||
return (
|
||||
<div className="mx_AppIconTile">
|
||||
<div className={contentClasses.join(' ')}>
|
||||
<div className="mx_AppIconTile_imageContainer">
|
||||
<img src={this.props.icon} alt={this.props.name} className="mx_AppIconTile_image"/>
|
||||
</div>
|
||||
|
|
Loading…
Reference in a new issue