{"size": 709, "ext": "js", "max_stars_repo_path": "js/views/navigation.js", "max_stars_repo_name": "digitalmaster/MongoCMS", "max_stars_repo_stars_event_min_datetime": "2015-01-23T14:11:40.000Z", "max_stars_repo_stars_event_max_datetime": "2019-04-16T22:09:27.000Z", "max_issues_repo_path": "js/views/navigation.js", "max_issues_repo_name": "digitalmaster/MongoCMS", "max_issues_repo_issues_event_min_datetime": "2015-01-21T04:00:08.000Z", "max_issues_repo_issues_event_max_datetime": "2015-07-29T00:25:30.000Z", "max_forks_repo_path": "js/views/navigation.js", "max_forks_repo_name": "digitalmaster/MongoCMS", "max_forks_repo_forks_event_min_datetime": "2015-03-30T14:27:29.000Z", "max_forks_repo_forks_event_max_datetime": "2021-02-22T09:10:23.000Z"}
{"max_stars_count": 44, "max_issues_count": 1, "max_forks_count": 13, "avg_line_length": 22.15625, "max_line_length": 65, "alphanum_fraction": 0.5923836389}
'use strict';

var EVE = require('../events');

var NavView =  BB.View.extend({
    el: '.nav',

    events: {
        'click a[data-target="collection"]': 'onCollectionClick',
        'click a[data-target="connect"]': 'onConnectionClick',
        'click a[data-target="config"]': 'onConfigClick'
    },

    onCollectionClick: function(e){
        e.preventDefault();
        EVE.trigger('connect:showCollectionSelect');
    },

    onConnectionClick: function(e){
        e.preventDefault();
        EVE.trigger('connect:show')
    },

    //- TODO: Add Config Panel
    onConfigClick: function(e){
        e.preventDefault();
        console.log('Config clicked');
    }
});

module.exports = new NavView;
