diff options
-rw-r--r-- | client/components/sidebar/sidebar.jade | 2 | ||||
-rw-r--r-- | client/components/sidebar/sidebar.js | 7 | ||||
-rw-r--r-- | i18n/en.i18n.json | 2 |
3 files changed, 10 insertions, 1 deletions
diff --git a/client/components/sidebar/sidebar.jade b/client/components/sidebar/sidebar.jade index cb0845af..572890b6 100644 --- a/client/components/sidebar/sidebar.jade +++ b/client/components/sidebar/sidebar.jade @@ -1,7 +1,7 @@ template(name="sidebar") .board-sidebar.sidebar(class="{{#if isOpen}}is-open{{/if}}") a.sidebar-tongue.js-toggle-sidebar( - class="{{#if isTongueHidden}}is-hidden{{/if}}") + class="{{#if isTongueHidden}}is-hidden{{/if}}")(title="{{showTongueTitle}}") i.fa.fa-angle-left .sidebar-shadow .sidebar-content.sidebar-shortcuts diff --git a/client/components/sidebar/sidebar.js b/client/components/sidebar/sidebar.js index 9eab1656..6e9a1be9 100644 --- a/client/components/sidebar/sidebar.js +++ b/client/components/sidebar/sidebar.js @@ -89,6 +89,13 @@ BlazeComponent.extendComponent({ return TAPi18n.__(viewTitles[this.getView()]); }, + showTongueTitle() { + if (this.isOpen()) + return `${TAPi18n.__('sidebar-close')}`; + else + return `${TAPi18n.__('sidebar-open')}`; + }, + events() { return [{ 'click .js-hide-sidebar': this.hide, diff --git a/i18n/en.i18n.json b/i18n/en.i18n.json index 5d52e390..b6c98152 100644 --- a/i18n/en.i18n.json +++ b/i18n/en.i18n.json @@ -293,6 +293,8 @@ "shortcut-toggle-filterbar": "Toggle Filter Sidebar", "shortcut-toggle-sidebar": "Toggle Board Sidebar", "show-cards-minimum-count": "Show cards count if list contains more than", + "sidebar-open": "Open Sidebar", + "sidebar-close": "Close Sidebar", "signupPopup-title": "Create an Account", "star-board-title": "Click to star this board. It will show up at top of your boards list.", "starred-boards": "Starred Boards", |