Skip to content

Commit

Permalink
add css class for status field in grid (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
MarsArt committed Aug 15, 2024
1 parent 5389404 commit 6889ab5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions view/adminhtml/ui_component/smtp_log_listing.xml
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@
</editor>
<label translate="true">Status</label>
<options class="Mygento\Smtp\Model\Source\Status"/>
<bodyTmpl>Mygento_Smtp/grid/cells/status</bodyTmpl>
</settings>
</column>
<column name="error">
Expand Down
3 changes: 3 additions & 0 deletions view/adminhtml/web/template/grid/cells/status.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<div class="data-grid-cell-content">
<span css="{ 'grid-severity-notice' : $row().status == 1, 'grid-severity-major': $row().status != 1 }" text="$col.getLabel($row())"></span>
</div>

0 comments on commit 6889ab5

Please sign in to comment.