mirror of
https://github.com/documize/community.git
synced 2025-07-23 15:19:42 +02:00
improved tooltips
This commit is contained in:
parent
6a651770b5
commit
a86d52388e
4 changed files with 34 additions and 14 deletions
|
@ -32,6 +32,7 @@ export default Ember.Component.extend(NotifierMixin, TooltipMixin, AuthMixin, {
|
|||
isPinned: false,
|
||||
pinId: '',
|
||||
newName: '',
|
||||
tip: null
|
||||
},
|
||||
deleteSpaceName: '',
|
||||
|
||||
|
@ -63,6 +64,18 @@ export default Ember.Component.extend(NotifierMixin, TooltipMixin, AuthMixin, {
|
|||
if (this.get('permissions.spaceManage')) {
|
||||
this.addTooltip(document.getElementById("space-settings-button"));
|
||||
}
|
||||
if (this.get('session.authenticated')) {
|
||||
let t = this.get('pinState.tip');
|
||||
if (is.not.null(t)) {
|
||||
t.destroy();
|
||||
}
|
||||
|
||||
if (this.get('pinState.isPinned')) {
|
||||
this.set('pinState.tip', this.addTooltip(document.getElementById("space-unpin-button")))
|
||||
} else {
|
||||
this.set('pinState.tip', this.addTooltip(document.getElementById("space-pin-button")))
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue