disable merge temp

This commit is contained in:
Mo Bitar
2016-12-28 12:12:51 -06:00
parent c7677b8896
commit 8ec59a58a8
4 changed files with 18 additions and 18 deletions

View File

@@ -150,13 +150,13 @@ angular.module('app.frontend')
this.onAuthSuccess = function(user) {
this.user.uuid = user.uuid;
if(this.user.shouldMerge && this.hasLocalData()) {
apiController.mergeLocalDataRemotely(this.user, function(){
window.location.reload();
});
} else {
// if(this.user.shouldMerge && this.hasLocalData()) {
// apiController.mergeLocalDataRemotely(this.user, function(){
// window.location.reload();
// });
// } else {
window.location.reload();
}
// }
this.showLogin = false;
this.showRegistration = false;

View File

@@ -28,10 +28,10 @@
%input.form-control.login-input{:autofocus => 'autofocus', :name => 'email', :placeholder => 'Email', :required => true, :type => 'email', 'ng-model' => 'ctrl.loginData.email'}
.form-tag.has-feedback
%input.form-control.login-input{:placeholder => 'Password', :name => 'password', :required => true, :type => 'password', 'ng-model' => 'ctrl.loginData.user_password'}
.checkbox{"ng-if" => "ctrl.hasLocalData()"}
%label
%input{"type" => "checkbox", "ng-model" => "ctrl.user.shouldMerge", "ng-bind" => "true", "ng-change" => "ctrl.mergeLocalChanged()"}
Merge local notes
-# .checkbox{"ng-if" => "ctrl.hasLocalData()"}
-# %label
-# %input{"type" => "checkbox", "ng-model" => "ctrl.user.shouldMerge", "ng-bind" => "true", "ng-change" => "ctrl.mergeLocalChanged()"}
-# Merge local notes
%button.btn.dark-button.half-button{"ng-click" => "ctrl.loginSubmitPressed()", "data-style" => "expand-right", "data-size" => "s", "state" => "buttonState"}
%span Sign In
%button.btn.dark-button.half-button{"ng-click" => "ctrl.submitRegistrationForm()", "data-style" => "expand-right", "data-size" => "s", "state" => "buttonState"}

View File

@@ -842,13 +842,13 @@ angular.module('app.frontend').controller('BaseCtrl', BaseCtrl);
this.onAuthSuccess = function (user) {
this.user.uuid = user.uuid;
if (this.user.shouldMerge && this.hasLocalData()) {
apiController.mergeLocalDataRemotely(this.user, function () {
window.location.reload();
});
} else {
window.location.reload();
}
// if(this.user.shouldMerge && this.hasLocalData()) {
// apiController.mergeLocalDataRemotely(this.user, function(){
// window.location.reload();
// });
// } else {
window.location.reload();
// }
this.showLogin = false;
this.showRegistration = false;

File diff suppressed because one or more lines are too long