all files / src/pluginApi/ pluginNavItem.ui.tsx

83.33% Statements 10/12
100% Branches 0/0
60% Functions 3/5
83.33% Lines 10/12
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27                                 
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
"use strict";
var React = require('react');
var react_redux_1 = require('react-redux');
var ModalIds = require('../modal/modalDialogIds');
var Modal = require('../modal/modalDialog.js');
var PluginsTopNavItem = function (props) {
    return React.createElement("li", {className: "slds-context-bar__item"}, 
        React.createElement("a", {href: "javascript:void(0);", onClick: function () { return props.showPluginsDialog(); }, className: "slds-context-bar__label-action", title: "Plugins"}, 
            React.createElement("span", {className: "slds-truncate"}, "Plugin Manager")
        )
    );
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.default = react_redux_1.connect(function (state) {
    return {};
}, function (dispatch) {
    return {
        showPluginsDialog: function () {
            dispatch(Modal.showModal(ModalIds.PLUGINS));
        }
    };
})(PluginsTopNavItem);