Skip to content

Commit

Permalink
#2062 Take the alert readonly mode into account to disable tags and d…
Browse files Browse the repository at this point in the history
…escription edit
  • Loading branch information
nadouani committed Jun 9, 2021
1 parent 9bbf5e1 commit 4ffea3c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions frontend/app/views/partials/alert/event.dialog.html
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,12 @@ <h4 class="vpad10 text-primary">
</h4>
<dl class="dl-horizontal">
<dt class="pull-left">Tags</dt>
<dd ng-if="dialog.canEdit">
<dd ng-if="dialog.canEdit && !dialog.readonly">
<updatable-tag-list on-update="dialog.updateField('tags', dialog.getTags(newValue))"
value="dialog.event.tags" source="dialog.getAlertTags"></updatable-tag-list>
</dd>
<dd ng-if="!dialog.canEdit">
<tag-list data="caze.tags"></tag-list>
<dd ng-if="!dialog.canEdit || dialog.readonly">
<tag-list data="dialog.event.tags"></tag-list>
</dd>
</dl>
</div>
Expand All @@ -68,11 +68,11 @@ <h4 class="vpad10 text-primary">
<h4 class="vpad10 text-primary">
Description
</h4>
<div class="description-pane" ng-if="!dialog.canEdit">
<div class="description-pane" ng-if="!dialog.canEdit || dialog.readonly">
<div marked="dialog.event.description" class="markdown"></div>
</div>

<div class="description-pane" ng-if="dialog.canEdit">
<div class="description-pane" ng-if="dialog.canEdit && !dialog.readonly">
<updatable-text on-update="dialog.updateField('description', newValue)"
value="dialog.event.description"></updatable-text>
</div>
Expand Down

0 comments on commit 4ffea3c

Please sign in to comment.