GitHub issue #241 -- and also some appearance updates. Eventually this might get replaced by a native Mac app.

This commit is contained in:
Adam Ierymenko 2015-11-16 14:30:25 -08:00
commit 220552af62
14 changed files with 129 additions and 535 deletions

View file

@ -4,19 +4,17 @@ var ZeroTierNetwork = React.createClass({
},
leaveNetwork: function(event) {
if (confirm("Are you sure you want to leave this network?")) {
Ajax.call({
url: 'network/'+this.props.nwid+'?auth='+this.props.authToken,
cache: false,
type: 'DELETE',
success: function(data) {
if (this.props.onNetworkDeleted)
this.props.onNetworkDeleted(this.props.nwid);
}.bind(this),
error: function(error) {
}.bind(this)
});
}
Ajax.call({
url: 'network/'+this.props.nwid+'?auth='+this.props.authToken,
cache: false,
type: 'DELETE',
success: function(data) {
if (this.props.onNetworkDeleted)
this.props.onNetworkDeleted(this.props.nwid);
}.bind(this),
error: function(error) {
}.bind(this)
});
event.preventDefault();
},