fix: allow non-mods to crosspost, move crosspost button out of topic tools, in-modal state updates

This commit is contained in:
Julian Lam
2025-12-29 13:00:09 -05:00
parent 38fd179848
commit 6daaad810f
3 changed files with 33 additions and 8 deletions

View File

@@ -9,6 +9,7 @@
<!-- IMPORT partials/category/filter-dropdown-right.tpl -->
</div>
<div class="card-footer text-end">
<i class="fa me-2" id="crosspost_topic_spinner"></i>
<button type="button" class="btn btn-sm btn-outline-secondary" id="crosspost_topic_cancel">[[global:buttons.close]]</button>
<button type="button" class="btn btn-sm btn-primary" id="crosspost_thread_commit" disabled>[[topic:confirm-crosspost]]</button>
</div>

View File

@@ -21,10 +21,6 @@
</li>
{{{ end }}}
<li>
<a component="topic/crosspost" href="#" class="dropdown-item rounded-1 d-flex align-items-center gap-2" role="menuitem"><i class="fa fa-fw fa-clone text-secondary"></i> [[topic:thread-tools.crosspost]]</a>
</li>
<li>
<a component="topic/merge" href="#" class="dropdown-item rounded-1 d-flex align-items-center gap-2" role="menuitem"><i class="fa fa-fw fa-code-fork text-secondary"></i> [[topic:thread-tools.merge]]</a>
</li>