Sha256: d15f1607bcd534e5321ea2ea871215878d9daed56495b5706d543a382c3467cf

Contents?: true

Size: 1.32 KB

Versions: 77

Compression:

Stored size: 1.32 KB

Contents

import React from 'react';
import PropTypes from 'prop-types';
import { Modal, Icon } from 'patternfly-react';
import { noop } from 'foremanReact/common/helpers';
import { translate as __ } from 'foremanReact/common/I18n';
import Terminal from '../Terminal';
import './fullScreenModal.scss';

const FullScreenModal = ({
  showFullScreen,
  toggleFullScreen,
  terminalProps,
}) => (
  <Modal
    id="rh-cloud-inventory-full-screen-terminal"
    show={showFullScreen}
    onHide={toggleFullScreen}
  >
    <Modal.Header>
      <button
        className="close"
        onClick={toggleFullScreen}
        aria-hidden="true"
        aria-label="Close"
      >
        <Icon type="pf" name="close" />
      </button>
      <Modal.Title>{__('Full Screen')}</Modal.Title>
    </Modal.Header>
    <Modal.Body>
      <Terminal autoScroll={false} {...terminalProps} />
    </Modal.Body>
  </Modal>
);

FullScreenModal.propTypes = {
  showFullScreen: PropTypes.bool,
  toggleFullScreen: PropTypes.func,
  terminalProps: PropTypes.shape({
    exitCode: PropTypes.string,
    logs: PropTypes.oneOfType([
      PropTypes.arrayOf(PropTypes.string),
      PropTypes.string,
    ]),
    error: PropTypes.string,
  }),
};

FullScreenModal.defaultProps = {
  showFullScreen: false,
  toggleFullScreen: noop,
  terminalProps: {},
};

export default FullScreenModal;

Version data entries

77 entries across 77 versions & 1 rubygems

Version Path
foreman_rh_cloud-7.0.47 webpack/ForemanInventoryUpload/Components/FullScreenModal/FullScreenModal.js
foreman_rh_cloud-8.0.50 webpack/ForemanInventoryUpload/Components/FullScreenModal/FullScreenModal.js
foreman_rh_cloud-8.0.49 webpack/ForemanInventoryUpload/Components/FullScreenModal/FullScreenModal.js
foreman_rh_cloud-8.0.48 webpack/ForemanInventoryUpload/Components/FullScreenModal/FullScreenModal.js
foreman_rh_cloud-8.0.47 webpack/ForemanInventoryUpload/Components/FullScreenModal/FullScreenModal.js
foreman_rh_cloud-8.0.46 webpack/ForemanInventoryUpload/Components/FullScreenModal/FullScreenModal.js
foreman_rh_cloud-6.0.45 webpack/ForemanInventoryUpload/Components/FullScreenModal/FullScreenModal.js
foreman_rh_cloud-5.0.46 webpack/ForemanInventoryUpload/Components/FullScreenModal/FullScreenModal.js
foreman_rh_cloud-5.0.45 webpack/ForemanInventoryUpload/Components/FullScreenModal/FullScreenModal.js
foreman_rh_cloud-7.0.46 webpack/ForemanInventoryUpload/Components/FullScreenModal/FullScreenModal.js
foreman_rh_cloud-5.0.44 webpack/ForemanInventoryUpload/Components/FullScreenModal/FullScreenModal.js
foreman_rh_cloud-7.0.45 webpack/ForemanInventoryUpload/Components/FullScreenModal/FullScreenModal.js
foreman_rh_cloud-6.0.44 webpack/ForemanInventoryUpload/Components/FullScreenModal/FullScreenModal.js
foreman_rh_cloud-5.0.43 webpack/ForemanInventoryUpload/Components/FullScreenModal/FullScreenModal.js
foreman_rh_cloud-4.0.36 webpack/ForemanInventoryUpload/Components/FullScreenModal/FullScreenModal.js
foreman_rh_cloud-3.0.33 webpack/ForemanInventoryUpload/Components/FullScreenModal/FullScreenModal.js
foreman_rh_cloud-6.0.42.2 webpack/ForemanInventoryUpload/Components/FullScreenModal/FullScreenModal.js
foreman_rh_cloud-6.0.42.1 webpack/ForemanInventoryUpload/Components/FullScreenModal/FullScreenModal.js
foreman_rh_cloud-6.0.43 webpack/ForemanInventoryUpload/Components/FullScreenModal/FullScreenModal.js
foreman_rh_cloud-5.0.42 webpack/ForemanInventoryUpload/Components/FullScreenModal/FullScreenModal.js