Skip to content

Latest commit

 

History

History
15 lines (15 loc) · 1.09 KB

2023-03-22-add-warning-state-to-sw-tabs-item.md

File metadata and controls

15 lines (15 loc) · 1.09 KB
title issue author author_email author_github
Add warning state to sw-tabs-item
NEXT-25231
Frederik Schmitt
f.schmitt@shopware.com
fschmtt

Administration

  • Added property hasWarning: Boolean to src/app/component/base/sw-tabs-item/index.js (defaults to false)
  • Added property errorTooltip: String to src/app/component/base/sw-tabs-item/index.js (defaults to global.sw-tabs-item.tooltipTabHasErrors)
  • Added property warningTooltip: String to src/app/component/base/sw-tabs-item/index.js (defaults to global.sw-tabs-item.tooltipTabHasWarnings)
  • Changed computed property tabsItemClasses in src/app/component/base/sw-tabs-item/index.js to add the sw-tabs-item--has-warning class if hasWarning is true
  • Added computed property activeTabHasWarnings to src/app/component/base/sw-tabs/index.js
  • Changed computed property sliderClasses in src/app/component/base/sw-tabs/index.js to add the has--warning class if activeTabHasWarnings is true
  • Added watcher for property activeTabHasWarnings in src/app/component/base/sw-tabs/index.js to recalculate the slider