From c8261d14768af3ffe2f5b58864906733460aa6c4 Mon Sep 17 00:00:00 2001 From: wdransfield Date: Tue, 20 Aug 2019 12:30:46 -0600 Subject: [PATCH] Show error message when configured default tool is not installed Closes PLAT-4804 Test Plan: - configure a default tool that is not installed - verify an error is dispalyed when creating an assignment Change-Id: I90b395c441cd07e884d1b71244a95bf72dc03020 Reviewed-on: https://gerrit.instructure.com/205866 Tested-by: Jenkins Reviewed-by: Xander Moffatt QA-Review: Xander Moffatt Product-Review: Weston Dransfield --- app/jsx/assignments/DefaultToolForm.js | 11 +++++++ .../__tests__/DefaultToolForm.test.js | 29 +++++++++++++++++++ 2 files changed, 40 insertions(+) diff --git a/app/jsx/assignments/DefaultToolForm.js b/app/jsx/assignments/DefaultToolForm.js index ccc0b28bd7b..5b6a9487a58 100644 --- a/app/jsx/assignments/DefaultToolForm.js +++ b/app/jsx/assignments/DefaultToolForm.js @@ -68,6 +68,17 @@ const DefaultToolForm = props => { SelectContentDialog.Events.onContextExternalToolSelect(event, $('#default-tool')) } + if(!defaultToolData && launchDefinitions.length > 0) { + return( + + + {I18n.t('Tool Not Found')}
+ {I18n.t('The tool is not installed in the course or account')} +
+
+ ) + } + return (