fix: Reload host-set to get all attributes
Update comments
This commit is contained in:
6 files changed
+32
-38
No files matched your search
@@ -23,7 +23,7 @@ export default class FormHostSetAddHostsIndexComponent extends Component {
|
||||
}
|
||||
|
||||
/**
|
||||
* Hosts not currently assigned to current host set.
|
||||
* Hosts currently not assigned to current host set.
|
||||
* @type {[HostModel]}
|
||||
*/
|
||||
@computed('args.{model,hosts}')
|
||||
@@ -34,6 +34,10 @@ export default class FormHostSetAddHostsIndexComponent extends Component {
|
||||
|
||||
// =actions
|
||||
|
||||
/**
|
||||
* Toggle host selection
|
||||
* @param {HostModel} host
|
||||
*/
|
||||
@action
|
||||
toggleHost(host) {
|
||||
if (!this.selectedHostIDs.includes(host.id)) {
|
||||
@@ -43,6 +47,10 @@ export default class FormHostSetAddHostsIndexComponent extends Component {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Callback submit with selected host ids
|
||||
* @param {requestCallback} fn
|
||||
*/
|
||||
@action
|
||||
submit(fn) {
|
||||
fn(this.selectedHostIDs);
|
||||
|
||||
Reference in new issue
Block a user