diff options
Diffstat (limited to 'client/components/sidebar')
-rw-r--r-- | client/components/sidebar/sidebar.jade | 2 | ||||
-rw-r--r-- | client/components/sidebar/sidebar.js | 6 | ||||
-rw-r--r-- | client/components/sidebar/sidebarFilters.jade | 4 | ||||
-rw-r--r-- | client/components/sidebar/sidebarFilters.js | 8 |
4 files changed, 10 insertions, 10 deletions
diff --git a/client/components/sidebar/sidebar.jade b/client/components/sidebar/sidebar.jade index a09f6a20..e7cd1159 100644 --- a/client/components/sidebar/sidebar.jade +++ b/client/components/sidebar/sidebar.jade @@ -1,6 +1,6 @@ template(name="sidebar") .board-sidebar.sidebar(class="{{#if isOpen}}is-open{{/if}}") - a.sidebar-tongue.js-toogle-sidebar( + a.sidebar-tongue.js-toggle-sidebar( class="{{#if isTongueHidden}}is-hidden{{/if}}") i.fa.fa-angle-left .sidebar-content.js-board-sidebar-content.js-perfect-scrollbar diff --git a/client/components/sidebar/sidebar.js b/client/components/sidebar/sidebar.js index ccc7e5aa..eff0ef52 100644 --- a/client/components/sidebar/sidebar.js +++ b/client/components/sidebar/sidebar.js @@ -44,7 +44,7 @@ BlazeComponent.extendComponent({ } }, - toogle() { + toggle() { this._isOpen.set(!this._isOpen.get()); }, @@ -96,7 +96,7 @@ BlazeComponent.extendComponent({ // XXX Hacky, we need some kind of `super` const mixinEvents = this.getMixin(Mixins.InfiniteScrolling).events(); return mixinEvents.concat([{ - 'click .js-toogle-sidebar': this.toogle, + 'click .js-toggle-sidebar': this.toggle, 'click .js-back-home': this.setView, }]); }, @@ -129,7 +129,7 @@ Template.memberPopup.helpers({ Template.memberPopup.events({ 'click .js-filter-member'() { - Filter.members.toogle(this.userId); + Filter.members.toggle(this.userId); Popup.close(); }, 'click .js-change-role': Popup.open('changePermissions'), diff --git a/client/components/sidebar/sidebarFilters.jade b/client/components/sidebar/sidebarFilters.jade index 26e49aba..c894bc8b 100644 --- a/client/components/sidebar/sidebarFilters.jade +++ b/client/components/sidebar/sidebarFilters.jade @@ -22,7 +22,7 @@ template(name="filterSidebar") if isActive with getUser userId li(class="{{#if Filter.members.isSelected _id}}active{{/if}}") - a.name.js-toogle-member-filter + a.name.js-toggle-member-filter +userAvatar(userId=this._id) span.sidebar-list-item-description = profile.fullname @@ -59,7 +59,7 @@ template(name="multiselectionSidebar") if isActive with getUser userId li(class="{{#if Filter.members.isSelected _id}}active{{/if}}") - a.name.js-toogle-member-multiselection + a.name.js-toggle-member-multiselection +userAvatar(userId=this._id) span.sidebar-list-item-description = profile.fullname diff --git a/client/components/sidebar/sidebarFilters.js b/client/components/sidebar/sidebarFilters.js index 7fce7286..335cc7d6 100644 --- a/client/components/sidebar/sidebarFilters.js +++ b/client/components/sidebar/sidebarFilters.js @@ -7,12 +7,12 @@ BlazeComponent.extendComponent({ return [{ 'click .js-toggle-label-filter'(evt) { evt.preventDefault(); - Filter.labelIds.toogle(this.currentData()._id); + Filter.labelIds.toggle(this.currentData()._id); Filter.resetExceptions(); }, - 'click .js-toogle-member-filter'(evt) { + 'click .js-toggle-member-filter'(evt) { evt.preventDefault(); - Filter.members.toogle(this.currentData()._id); + Filter.members.toggle(this.currentData()._id); Filter.resetExceptions(); }, 'click .js-clear-all'(evt) { @@ -85,7 +85,7 @@ BlazeComponent.extendComponent({ }, }); }, - 'click .js-toogle-member-multiselection'(evt) { + 'click .js-toggle-member-multiselection'(evt) { const memberId = this.currentData()._id; const mappedSelection = this.mapSelection('member', memberId); let operation; |