Fix: suppression conquête automatique

This commit is contained in:
Vincent Vandemeulebrouck 2021-06-05 01:53:30 +02:00
parent 7ba3b44c87
commit 9a7b01a985
3 changed files with 10 additions and 9 deletions

View File

@ -4079,7 +4079,7 @@ export class RdDActor extends Actor {
if (Misc.isElectedUser()) {
let draconique = Draconique.all().find(it => it.isCase(item));
if (draconique) {
draconique.onActorDeleteCaseTmr(this, item)
draconique.onActorDeleteCaseTmr(this, Misc.data(item))
}
}
}

View File

@ -567,12 +567,13 @@
{{#each hautreve.casesTmr as |casetmr key|}}
<li class="item flexrow" data-item-id="{{casetmr._id}}" data-attribute="{{key}}">
<span class="display-label"><a data-item-id="{{casetmr._id}}">{{casetmr.name}}</a></span>
<span class="item-controls flex-shrink">
<div class="item-controls flex-shrink">
<a class="item-control item-delete" title="Supprimer"><i class="fas fa-trash"></i></a>
</span>
</div>
</li>
{{/each}}
</ul>
<br><br>
{{/if}}
</div>