From aab2dc12f42a48acd7e39afe9fa03efac32d5e55 Mon Sep 17 00:00:00 2001 From: ninabreznik Date: Sun, 20 May 2018 00:41:19 -0400 Subject: [PATCH] Switch arrows in Recorder card --- src/app/tabs/run-tab.js | 4 ++-- src/app/ui/card.js | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/app/tabs/run-tab.js b/src/app/tabs/run-tab.js index ba6b8eafbe..3d4fee5593 100644 --- a/src/app/tabs/run-tab.js +++ b/src/app/tabs/run-tab.js @@ -80,10 +80,10 @@ function runTab (appAPI = {}, appEvents = {}, opts = {}) { recorderCard.event.register('expandCollapseCard', (arrow, body, status) => { body.innerHTML = '' status.innerHTML = '' - if (arrow === 'up') { + if (arrow === 'down') { status.appendChild(self._view.collapsedView) body.appendChild(self._view.expandedView) - } else if (arrow === 'down') { + } else if (arrow === 'up') { status.appendChild(self._view.collapsedView) } }) diff --git a/src/app/ui/card.js b/src/app/ui/card.js index c4b9a481a0..a9ed601aca 100644 --- a/src/app/ui/card.js +++ b/src/app/ui/card.js @@ -19,7 +19,7 @@ module.exports = class Card { if (self._view.el) return self._view.el self._view.cardBody = yo`
` - self._view.arrow = yo` trigger(ev.target)}>` self._view.expandCollapseButton = yo` @@ -39,8 +39,8 @@ module.exports = class Card { function trigger (el) { var body = self._view.cardBody var status = self._view.statusBar - el.classList.toggle('fa-angle-down') - var arrow = el.classList.toggle('fa-angle-up') ? 'down' : 'up' + el.classList.toggle('fa-angle-up') + var arrow = el.classList.toggle('fa-angle-down') ? 'up' : 'down' self.event.trigger('expandCollapseCard', [arrow, body, status]) }