-
Notifications
You must be signed in to change notification settings - Fork 385
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
37 changed files
with
9,244 additions
and
279 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
Balanced.ObjectController = Ember.ObjectController.extend({ | ||
|
||
}); | ||
|
||
Balanced.ArrayController = Ember.ArrayController.extend({ | ||
|
||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
Balanced.LoginCreateController = Balanced.ObjectController.extend({ | ||
model: function () { | ||
return Balanced.Login.find('current'); | ||
}, | ||
login: function (data) { | ||
var login = Balanced.Login.createRecord(data); | ||
// this appears to force the op to be flushed to the API. probably not | ||
// the way to do this but done for now. | ||
login.transaction.commit(); | ||
login.addObserver('isLoaded', this.refresh); | ||
}, | ||
logout: function (data) { | ||
Ember.set('Balanced.currentLogin', null); | ||
}, | ||
refresh: function (login, event) { | ||
if (!login) { | ||
return; | ||
} | ||
// isLoaded seems to be set to true even when the object hasn't loaded | ||
// the data (e.g. uri is null). checking for password is a hack around | ||
// this. | ||
if (login.get('isLoaded') && !login.get('password')) { | ||
// no url indicates failed login attempt, it's probably better to | ||
// have a failure handler but i haven't figured this out yet. | ||
if (!login.get('uri')) { | ||
login = null; | ||
} | ||
Ember.set('Balanced.currentLogin', login); | ||
} | ||
} | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
Balanced.MarketplacesIndexController = Balanced.ArrayController.extend({ | ||
|
||
}); | ||
|
||
|
||
Balanced.ShowController = Balanced.ObjectController.extend({ | ||
|
||
}); |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.