diff options
author | Mario <mario@mariovavti.com> | 2024-07-22 20:26:14 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2024-07-22 20:26:14 +0000 |
commit | f4ffef967aeea6da57edcf21a1094e14f6d15e2c (patch) | |
tree | 5332479efd59e8f393c5f92d5127881076a1c81a | |
parent | 77a6a21ea2568bb50e55f49ed0a481ff5ebaeb9d (diff) | |
download | volse-hubzilla-f4ffef967aeea6da57edcf21a1094e14f6d15e2c.tar.gz volse-hubzilla-f4ffef967aeea6da57edcf21a1094e14f6d15e2c.tar.bz2 volse-hubzilla-f4ffef967aeea6da57edcf21a1094e14f6d15e2c.zip |
undo announce is not yet supported - hide it in the UI until it is
-rw-r--r-- | view/tpl/conv_item.tpl | 4 | ||||
-rw-r--r-- | view/tpl/conv_list.tpl | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/view/tpl/conv_item.tpl b/view/tpl/conv_item.tpl index db83ae5c7..14ac86df7 100644 --- a/view/tpl/conv_item.tpl +++ b/view/tpl/conv_item.tpl @@ -115,7 +115,7 @@ <h3 class="modal-title">{{$response.count}} {{$response.button.label}}</h3> <button type="button" class="btn-close" data-bs-dismiss="modal" aria-hidden="true"></button> </div> - {{if $item.reactions_allowed}} + {{if $item.reactions_allowed && ($item.my_responses.$verb && $verb != 'announce')}} {{** undo announce is not yet supported **}} <div class="modal-header"> <a href="#" class="text-reset" onclick="{{$response.button.onclick}}({{$item.id}},'{{$verb}}'); return false;">{{if $item.my_responses.like}}- Remove{{else}}+ Add{{/if}} yours</a> </div> @@ -135,7 +135,7 @@ </div><!-- /.modal --> {{else}} <div class="dropdown-menu"> - {{if $item.reactions_allowed}} + {{if $item.reactions_allowed && ($item.my_responses.$verb && $verb != 'announce')}} {{** undo announce is not yet supported **}} <div class="dropdown-item"> <a href="#" class="text-reset" onclick="{{$response.button.onclick}}({{$item.id}},'{{$verb}}'); return false;">{{if $item.my_responses.$verb}}- Remove{{else}}+ Add{{/if}} yours</a> </div> diff --git a/view/tpl/conv_list.tpl b/view/tpl/conv_list.tpl index d164122e9..bc1b386e3 100644 --- a/view/tpl/conv_list.tpl +++ b/view/tpl/conv_list.tpl @@ -128,7 +128,7 @@ <h3 class="modal-title">{{$response.count}} {{$response.button.label}}</h3> <button type="button" class="btn-close" data-bs-dismiss="modal" aria-hidden="true"></button> </div> - {{if $item.reactions_allowed}} + {{if $item.reactions_allowed && ($item.my_responses.$verb && $verb != 'announce')}} {{** undo announce is not yet supported **}} <div class="modal-header"> <a href="#" class="text-reset" onclick="{{$response.button.onclick}}({{$item.id}},'{{$verb}}'); return false;">{{if $item.my_responses.like}}- Remove{{else}}+ Add{{/if}} yours</a> </div> @@ -148,7 +148,7 @@ </div><!-- /.modal --> {{else}} <div class="dropdown-menu"> - {{if $item.reactions_allowed}} + {{if $item.reactions_allowed && ($item.my_responses.$verb && $verb != 'announce')}} {{** undo announce is not yet supported **}} <div class="dropdown-item"> <a href="#" class="text-reset" onclick="{{$response.button.onclick}}({{$item.id}},'{{$verb}}'); return false;">{{if $item.my_responses.$verb}}- Remove{{else}}+ Add{{/if}} yours</a> </div> |