Skip to content

Commit ce1d691

Browse files
Added hide functionality for notification delete button in subscription (#68)
edit window
1 parent 66abf45 commit ce1d691

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/main/resources/templates/subscription.html

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,8 +163,9 @@ <h3 class="modal-title text-center" id="formHeader">Subscription Form</h3>
163163
placeholder="Value" class="form-control" type="text"></textarea>
164164
</td>
165165
<td valign="top" data-bind="visible: $root.formpostkeyvaluepairs">
166-
<button data-bind="click: function(data, event) { $root.delete_NotificationMsgKeyValuePair(data, event, $index()); }, clickBubble: false"
167-
data-toggle="tooltip" title="Delete Key/Value Pair" class="btn btn-danger float-right">
166+
<button data-bind="click: function(data, event) { $root.delete_NotificationMsgKeyValuePair(data, event, $index()); },
167+
clickBubble: false, style:{visibility:($root.subscription()[0].notificationMessageKeyValues().length > 1) ? 'visible' : 'hidden'}"
168+
data-toggle="tooltip" title="Delete Key/Value Pair" class="btn btn-danger float-right" style="visibility:hidden">
168169
<i class="glyphicon glyphicon-trash"></i>Delete
169170
</button>
170171
</td>

0 commit comments

Comments
 (0)