Add add button on label list
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
|
||||
div.label-list-panel-root {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
min-height: 100%;
|
||||
padding: 10px;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
@@ -30,7 +30,6 @@ class LabelList extends Component<ILabelListProps & IMixinStatusProps & IMixinSe
|
||||
}}
|
||||
>
|
||||
<LabelListComponent
|
||||
canDelete
|
||||
labels={labels}
|
||||
focusLabel={this.props.status ? this.props.status.focusLabel : undefined}
|
||||
clickLabel={(label) => {
|
||||
@@ -49,6 +48,10 @@ class LabelList extends Component<ILabelListProps & IMixinStatusProps & IMixinSe
|
||||
}
|
||||
this.labelInnerClick = true;
|
||||
}}
|
||||
minHeight={26}
|
||||
addLabel={() => {
|
||||
this.props.status ? this.props.status.newLabel() : undefined;
|
||||
}}
|
||||
/>
|
||||
</div>;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user