From 89bbdc5c6e77c28332720e1b2347af48c4f99ad2 Mon Sep 17 00:00:00 2001 From: yixian Date: Tue, 14 Jul 2020 13:51:15 +1000 Subject: [PATCH] fix ui bug --- src/main/ui/static/analysis/settle_tasks.js | 4 ++++ src/main/ui/static/analysis/templates/settle_tasks_index.html | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/main/ui/static/analysis/settle_tasks.js b/src/main/ui/static/analysis/settle_tasks.js index b91a71a82..c43e87b01 100644 --- a/src/main/ui/static/analysis/settle_tasks.js +++ b/src/main/ui/static/analysis/settle_tasks.js @@ -106,6 +106,10 @@ define(['angular', 'uiBootstrap', 'uiRouter'], function (angular) { $scope.currentTasks = []; } + $scope.editTask = function (task) { + $scope.editingTask = task; + } + $scope.newTask = function () { $uibModal.open({ size: 'lg', diff --git a/src/main/ui/static/analysis/templates/settle_tasks_index.html b/src/main/ui/static/analysis/templates/settle_tasks_index.html index 2a634d358..a916900a3 100644 --- a/src/main/ui/static/analysis/templates/settle_tasks_index.html +++ b/src/main/ui/static/analysis/templates/settle_tasks_index.html @@ -53,7 +53,7 @@ ng-click="task.display_detail=!task.display_detail"> + ng-click="editTask(task)">