2021-06-30 16:12:12 +00:00
|
|
|
import { SHOW_CONNECTION_INFO } from '../base/connection/actionTypes';
|
|
|
|
|
2021-01-21 20:46:47 +00:00
|
|
|
export * from './actions.any';
|
2021-06-30 16:12:12 +00:00
|
|
|
|
|
|
|
/**
|
2022-07-14 07:10:08 +00:00
|
|
|
* Sets whether to render the connection status info into the Popover of the thumbnail or the context menu buttons.
|
2021-06-30 16:12:12 +00:00
|
|
|
*
|
|
|
|
* @param {boolean} showConnectionInfo - Whether it should show the connection
|
|
|
|
* info or the context menu buttons on thumbnail popover.
|
|
|
|
* @returns {Object}
|
|
|
|
*/
|
|
|
|
export function renderConnectionStatus(showConnectionInfo: boolean) {
|
|
|
|
return {
|
|
|
|
type: SHOW_CONNECTION_INFO,
|
|
|
|
showConnectionInfo
|
|
|
|
};
|
|
|
|
}
|