From 642f4faf21accfba7c5ebd8a72ad16dc1e5a39a1 Mon Sep 17 00:00:00 2001 From: Seyi Adebajo Date: Tue, 27 Mar 2018 10:33:18 -0700 Subject: [PATCH] changes suggestion buttons to thumbs. annotates isRecentSuggestion return type --- wherehows-web/app/constants/dataset-compliance.ts | 2 +- .../templates/components/auto-suggest-action.hbs | 13 ++----------- 2 files changed, 3 insertions(+), 12 deletions(-) diff --git a/wherehows-web/app/constants/dataset-compliance.ts b/wherehows-web/app/constants/dataset-compliance.ts index 684813674d..e201dcddc3 100644 --- a/wherehows-web/app/constants/dataset-compliance.ts +++ b/wherehows-web/app/constants/dataset-compliance.ts @@ -180,7 +180,7 @@ const getIdTypeDataTypes = (complianceDataTypes: Array = [] const isRecentSuggestion = ( policyModificationTime: IComplianceInfo['modifiedTime'], suggestionModificationTime: number -) => +): boolean => // policy has not been modified previously or suggestion mod time is greater than or equal to interval !policyModificationTime || (!!suggestionModificationTime && diff --git a/wherehows-web/app/templates/components/auto-suggest-action.hbs b/wherehows-web/app/templates/components/auto-suggest-action.hbs index 5496283272..ab07bdf799 100644 --- a/wherehows-web/app/templates/components/auto-suggest-action.hbs +++ b/wherehows-web/app/templates/components/auto-suggest-action.hbs @@ -1,15 +1,6 @@ {{#if (eq type "accept")}} - - - - - + {{else}} - - - - - + {{/if}}