From 9783cdbf6aae07b34b2380035bcd2372d46cac17 Mon Sep 17 00:00:00 2001 From: Leonard Rapp Date: Thu, 27 Oct 2016 20:22:30 +0200 Subject: [PATCH] app/components/flight-details-table: display only flight's compID and registration, not IGC file's, fixes #511 --- ember/app/components/flight-details-table.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ember/app/components/flight-details-table.js b/ember/app/components/flight-details-table.js index 6e40a10737..13b9581658 100644 --- a/ember/app/components/flight-details-table.js +++ b/ember/app/components/flight-details-table.js @@ -15,8 +15,8 @@ export default Ember.Component.extend({ duration: safeComputed('flight.takeoffTime', 'flight.landingTime', (takeoff, landing) => (new Date(landing).getTime() - new Date(takeoff).getTime()) / 1000), - registration: Ember.computed.or('flight.registration', 'flight.igcFile.registration'), - competitionId: Ember.computed.or('flight.competitionId', 'flight.igcFile.competitionId'), + registration: Ember.computed.alias('flight.registration'), + competitionId: Ember.computed.alias('flight.competitionId'), isPilot: safeComputed('flight.pilot.id', 'flight.copilot.id', 'account.user.id', (pilotId, copilotId, accountId) => pilotId === accountId || copilotId === accountId),