From 308c4f3ce9330f4ac04cc04495533e6f2ad87f53 Mon Sep 17 00:00:00 2001 From: JoramWilander Date: Thu, 18 Jun 2015 10:40:46 -0400 Subject: added team store, team settings menu, and the ability to turn on valet feature from client --- web/react/components/team_settings_modal.jsx | 63 ++++++++++++++++++++++++++++ 1 file changed, 63 insertions(+) create mode 100644 web/react/components/team_settings_modal.jsx (limited to 'web/react/components/team_settings_modal.jsx') diff --git a/web/react/components/team_settings_modal.jsx b/web/react/components/team_settings_modal.jsx new file mode 100644 index 000000000..08a952d2e --- /dev/null +++ b/web/react/components/team_settings_modal.jsx @@ -0,0 +1,63 @@ +// Copyright (c) 2015 Spinpunch, Inc. All Rights Reserved. +// See License.txt for license information. + +var SettingsSidebar = require('./settings_sidebar.jsx'); +var TeamSettings = require('./team_settings.jsx'); + +module.exports = React.createClass({ + componentDidMount: function() { + $('body').on('click', '.modal-back', function(){ + $(this).closest('.modal-dialog').removeClass('display--content'); + }); + $('body').on('click', '.modal-header .close', function(){ + setTimeout(function() { + $('.modal-dialog.display--content').removeClass('display--content'); + }, 500); + }); + }, + updateTab: function(tab) { + this.setState({ active_tab: tab }); + }, + updateSection: function(section) { + this.setState({ active_section: section }); + }, + getInitialState: function() { + return { active_tab: "feature", active_section: "" }; + }, + render: function() { + var tabs = []; + tabs.push({name: "feature", ui_name: "Features", icon: "glyphicon glyphicon-wrench"}); + + return ( + + ); + } +}); + -- cgit v1.2.3-1-g7c22