Skip to content

Commit

Permalink
RA-1617:Error on clicking 'x' on patient page. (#218)
Browse files Browse the repository at this point in the history
  • Loading branch information
haripriya999 authored and dkayiwa committed Aug 8, 2019
1 parent b417bdc commit 7c48d7a
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions omod/src/main/webapp/fragments/conditionlist/conditions.gsp
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,28 @@
<div class="info-body">
<ul ng-repeat="conditionHistory in conditionHistoryList">
<li class="conditionStatus" ng-init="condition = conditionHistory.conditions[0]"
ng-show="condition.status === 'ACTIVE'">
ng-show="condition.status === 'ACTIVE' && condition.voided==false">
<span ng-style="strikeThrough(condition.voided)">{{condition.concept.name}}</span>
<i class="icon-remove delete-action" title="${ui.message("coreapps.delete")}"
ng-click="removeCondition(condition)" ng-if="condition.voided===false && '${hasModifyConditionsPrivilege}'"></i>
ng-click="conditionConfirmation(condition)" ng-if="condition.voided===false && '${hasModifyConditionsPrivilege}'"></i>
<i class="icon-undo delete-action" title="${ui.message("conditionui.undo")}"
ng-click="undoCondition(condition)" ng-if="condition.voided===true && '${hasModifyConditionsPrivilege}'"></i>
</li>
</ul>
</div>

<div id="remove-condition-dialog" class="dialog" style="display: none; position: absolute; left: 35%; top:30%;">
<div class="dialog-header">
<h3>${ ui.message("coreapps.conditionui.removeCondition") }</h3>
</div>
<div class="dialog-content">
<ul>
<li class="info">
<span id="removeConditionMessage">${ ui.message("coreapps.conditionui.removeCondition.message","")}</span>
</li>
</ul>
<button class="confirm right" type="submit" ng-click="removeCondition()">${ ui.message("general.yes") }</button>
<button class="cancel" ng-click="cancelDeletion()">${ ui.message("general.no") }</button>
</div>
</div>
</div>

0 comments on commit 7c48d7a

Please sign in to comment.