Source

environment-summary/environment-summary-infrastructure-actions.js

const TOGGLE_TAGS = 'situationalAwareness/environmentSummary/infrastructure/TOGGLE_TAGS';

/**
 * Provides a possibility to work with an infrastructure section of environment summary screen.
 *
 * @module situationalAwareness/environmentSummary/infrastructure
 */
export default {
    TOGGLE_TAGS,
    /**
     * Toggles tags in an infrastructure section of environment summary screen.
     *
     * @param {string} flowId - The unique Id of opened tab
     * @param {string} hostId - The CI ID of the host
     * @param {boolean} show - If true will show all tags, otherwise only first 3.
     * @property {string} type - TOGGLE_TAGS
     */
    toggleTags: (flowId, hostId, show) => ({
        flowId,
        hostId,
        show,
        type: TOGGLE_TAGS
    })
};