Skip to content

Commit

Permalink
perf(stock): improve input/output rendering
Browse files Browse the repository at this point in the history
  • Loading branch information
jniles committed May 31, 2022
1 parent 4c14aa6 commit d23e9fa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
1 change: 0 additions & 1 deletion client/src/modules/stock/movements/registry.js
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,6 @@ function StockMovementsController(
const fluxName = $translate.instant(getFluxName(row.flux_id));
// compute the fluxName from its ID
row.fluxName = fluxName.concat(row.target ? ` - ${row.target}` : '').trim();

}

function toggleLoading() {
Expand Down
9 changes: 3 additions & 6 deletions client/src/modules/stock/movements/templates/io.cell.html
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
<div class="ui-grid-cell-contents">
<span ng-show="row.entity.is_exit === 1" class="label label-danger" translate>
STOCK.OUTPUT
<span class="label" ng-class="{ 'label-danger' : row.entity.is_exit === 1, 'label-success' : row.entity.is_exit === 0 }">
{{row.entity.io}}
</span>
<span ng-show="row.entity.is_exit === 0" class="label label-success" translate>
STOCK.INPUT
</span>
</div>
</div>

0 comments on commit d23e9fa

Please sign in to comment.