mirror of
https://github.com/documize/community.git
synced 2025-08-08 06:55:28 +02:00
Prevent tooltips from showing when anonymous is set to true
This commit is contained in:
parent
8a4d0f7e70
commit
dc164f2f63
3 changed files with 10 additions and 4 deletions
|
@ -24,7 +24,6 @@ export default Base.extend({
|
||||||
},
|
},
|
||||||
|
|
||||||
authenticate({password, email}) {
|
authenticate({password, email}) {
|
||||||
debugger;
|
|
||||||
let domain = netUtil.getSubdomain();
|
let domain = netUtil.getSubdomain();
|
||||||
|
|
||||||
if (!isPresent(password) || !isPresent(email)) {
|
if (!isPresent(password) || !isPresent(email)) {
|
||||||
|
|
|
@ -15,9 +15,15 @@ export default Ember.Mixin.create({
|
||||||
tooltips: [],
|
tooltips: [],
|
||||||
|
|
||||||
addTooltip(elem) {
|
addTooltip(elem) {
|
||||||
|
|
||||||
|
if(elem == null) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
let t = new Tooltip({
|
let t = new Tooltip({
|
||||||
target: elem
|
target: elem
|
||||||
});
|
});
|
||||||
|
|
||||||
let tt = this.get('tooltips');
|
let tt = this.get('tooltips');
|
||||||
tt.push(t);
|
tt.push(t);
|
||||||
},
|
},
|
||||||
|
|
|
@ -27,6 +27,7 @@ export default Ember.Controller.extend({
|
||||||
this.get('session').authenticate('authenticator:documize', creds)
|
this.get('session').authenticate('authenticator:documize', creds)
|
||||||
.then((response) => {
|
.then((response) => {
|
||||||
this.get('audit').record("logged-in");
|
this.get('audit').record("logged-in");
|
||||||
|
this.transitionToRoute('folders.folder');
|
||||||
return response;
|
return response;
|
||||||
}).catch(() => {
|
}).catch(() => {
|
||||||
this.set('invalidCredentials', true);
|
this.set('invalidCredentials', true);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue