-
Notifications
You must be signed in to change notification settings - Fork 262
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(xo-web): add pool name to templates #3896
feat(xo-web): add pool name to templates #3896
Conversation
if (template === undefined) { | ||
return unknowItem(id, 'template') | ||
} | ||
|
||
return ( | ||
<span> | ||
<Icon icon='vm' /> {template.name_label} | ||
{!self && pool !== undefined && ( | ||
<span className={'text-muted'}>{` - ${pool.name_label}`}</span> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
className='text-muted'
if (template === undefined) { | ||
return unknowItem(id, 'template') | ||
} | ||
|
||
return ( | ||
<span> | ||
<Icon icon='vm' /> {template.name_label} | ||
{!self && pool !== undefined && ( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You don't need the !self
condition as pool
will be undefined
for self users anyway.
CHANGELOG.md
Outdated
@@ -8,6 +8,7 @@ | |||
- [Plugins] New field to filter displayed plugins (PR [#3832](https://github.com/vatesfr/xen-orchestra/pull/3871)) | |||
- Ability to copy ID of "unknown item"s [#3833](https://github.com/vatesfr/xen-orchestra/issues/3833) (PR [#3856](https://github.com/vatesfr/xen-orchestra/pull/3856)) | |||
- [Cloud-Init] switch config drive type to `nocloud` to prepare for the passing of network config (PR [#3877](https://github.com/vatesfr/xen-orchestra/pull/3877)) | |||
- Add pool name to templates [#3894](https://github.com/vatesfr/xen-orchestra/issues/3894) (PR [#3896](https://github.com/vatesfr/xen-orchestra/pull/3896)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reading this without having worked on it would probably be confusing.
"[UI] Show pool name next to templates' names"
fixes #3894
Check list
Fixes #007
)${name} v${new version}
)Process
WiP:
(Work in Progress) if not ready to be mergedScreenshots