Sha256: 4b0e0fa05acc6b9a589ea4c638172130990d5510b26f23cfd4f6762d24159a12

Contents?: true

Size: 898 Bytes

Versions: 27

Compression:

Stored size: 898 Bytes

Contents

import { selectForemanInventoryUpload } from '../../ForemanInventoryUploadSelectors';

export const selectDashboard = (state, accountID) =>
  selectForemanInventoryUpload(state).dashboard[accountID] || {};
export const selectUploading = (state, accountID) =>
  selectDashboard(state, accountID).uploading;
export const selectGenerating = (state, accountID) =>
  selectDashboard(state, accountID).generating;
export const selectPollingProcessID = (state, accountID) =>
  selectDashboard(state, accountID).pollingProcessID;
export const selectActiveTab = (state, accountID) =>
  selectDashboard(state, accountID).activeTab || 'generating';
export const selectShowFullScreen = (state, accountID) => {
  const activeTab = selectActiveTab(state, accountID);
  const tabProperties = selectDashboard(state, accountID)[activeTab];
  return tabProperties ? tabProperties.showFullScreen || false : false;
};

Version data entries

27 entries across 27 versions & 2 rubygems

Version Path
foreman_inventory_upload-1.0.0 webpack/ForemanInventoryUpload/Components/Dashboard/DashboardSelectors.js
foreman_inventory_upload-1.0.0.beta7 webpack/ForemanInventoryUpload/Components/Dashboard/DashboardSelectors.js
foreman_inventory_upload-1.0.0.beta6 webpack/ForemanInventoryUpload/Components/Dashboard/DashboardSelectors.js
foreman_inventory_upload-1.0.0.beta5 webpack/ForemanInventoryUpload/Components/Dashboard/DashboardSelectors.js
foreman_inventory_upload-1.0.0.beta4 webpack/ForemanInventoryUpload/Components/Dashboard/DashboardSelectors.js
foreman_inventory_upload-1.0.0.beta3 webpack/ForemanInventoryUpload/Components/Dashboard/DashboardSelectors.js
foreman_inventory_upload-1.0.0.beta2 webpack/ForemanInventoryUpload/Components/Dashboard/DashboardSelectors.js