query - busy indicator, canceling

This commit is contained in:
Jan Prochazka
2020-04-13 15:20:37 +02:00
parent fc98409583
commit 41322f237a
10 changed files with 88 additions and 31 deletions

View File

@@ -2,7 +2,7 @@ import React from 'react';
import _ from 'lodash';
import { getIconImage } from '../icons';
const openedTabAppObject = () => ({ tabid, props, selected, icon, title }, { setOpenedTabs }) => {
const openedTabAppObject = () => ({ tabid, props, selected, icon, title, busy }, { setOpenedTabs }) => {
const key = tabid;
const Icon = (props) => getIconImage(icon, props);
const isBold = !!selected;
@@ -16,7 +16,7 @@ const openedTabAppObject = () => ({ tabid, props, selected, icon, title }, { set
);
};
return { title, key, Icon, isBold, onClick };
return { title, key, Icon, isBold, onClick, isBusy: busy };
};
export default openedTabAppObject;