disable merge temp
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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"}
|
||||
|
||||
14
vendor/assets/javascripts/transpiled.js
vendored
14
vendor/assets/javascripts/transpiled.js
vendored
@@ -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;
|
||||
|
||||
2
vendor/assets/javascripts/transpiled.js.map
vendored
2
vendor/assets/javascripts/transpiled.js.map
vendored
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user