import { ProjectResource } from 'models/project';
import { deselectAllOthers, toggleOne } from 'store/multiselect/multiselect-actions';
-type CssRules = 'root' | 'button' | 'loader' | 'notFoundView';
+type CssRules = 'root' | 'button' ;
const styles: StyleRulesCallback<CssRules> = (theme: ArvadosTheme) => ({
root: {
button: {
marginLeft: theme.spacing.unit,
},
- loader: {
- top: "25%",
- left: "46.5%",
- marginLeft: "-84px",
- position: "absolute",
- },
- notFoundView: {
- top: "30%",
- left: "50%",
- marginLeft: "-84px",
- position: "absolute",
- },
});
export enum ProjectPanelColumnNames {
const mapStateToProps = (state: RootState) => {
const currentItemId = getProperty<string>(PROJECT_PANEL_CURRENT_UUID)(state.properties);
const project = getResource<GroupResource>(currentItemId || "")(state.resources);
- const working = !!state.progressIndicator.some(p => p.id === PROJECT_PANEL_ID && p.working);
return {
- working,
currentItemId,
project,
resources: state.resources,
contextMenuColumn={true}
defaultViewIcon={ProjectIcon}
defaultViewMessages={DEFAULT_VIEW_MESSAGES}
- working={this.props.working}
/>
</div>
}