From b59f544efb3484115c769a05aa9846888f80fe6a Mon Sep 17 00:00:00 2001 From: Nolan Lawson Date: Sun, 26 Aug 2018 19:46:19 -0700 Subject: [PATCH] fix application name (#501) it should not show "Web" by default but should be absent if `application` is null --- routes/_components/status/StatusDetails.html | 26 +++++++++++--------- 1 file changed, 14 insertions(+), 12 deletions(-) diff --git a/routes/_components/status/StatusDetails.html b/routes/_components/status/StatusDetails.html index 513efd07..07ed2c25 100644 --- a/routes/_components/status/StatusDetails.html +++ b/routes/_components/status/StatusDetails.html @@ -6,19 +6,21 @@ > - {#if applicationWebsite} - - + {#if applicationName} + {#if applicationWebsite} + + + {applicationName} + + + {:else} + {applicationName} - - {:else} - - {applicationName} - + {/if} {/if} store, computed: { application: ({ originalStatus }) => originalStatus.application, - applicationName: ({ application }) => ((application && application.name) || 'Web'), + applicationName: ({ application }) => (application && application.name), applicationWebsite: ({ application }) => (application && application.website), createdAtDate: ({ originalStatus }) => originalStatus.created_at, numReblogs: ({ originalStatus }) => originalStatus.reblogs_count || 0,