Skip to content

Commit

Permalink
fix(xo-web/pool): only show pool SRs in default SR selector
Browse files Browse the repository at this point in the history
Introduced by #7451
  • Loading branch information
pdonias committed May 2, 2024
1 parent 3a44b6d commit 9a46b9a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/xo-web/src/xo-app/pool/tab-advanced.js
Original file line number Diff line number Diff line change
Expand Up @@ -201,10 +201,10 @@ class PoolMaster extends Component {
}))
class SelectDefaultSr extends Component {
render() {
const { defaultSr } = this.props
const { defaultSr, pool } = this.props

return (
<XoSelect onChange={setDefaultSr} value={defaultSr} xoType='SR'>
<XoSelect onChange={setDefaultSr} value={defaultSr} xoType='SR' predicate={sr => sr.$pool === pool.id}>
{defaultSr !== undefined ? <Sr id={defaultSr.id} /> : _('noValue')}
</XoSelect>
)
Expand Down

0 comments on commit 9a46b9a

Please sign in to comment.