-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix navigation via clicking recent allocation row (#6087)
This fixes the recent allocation rows to navigate when clicking within them rather than just on the link, which matches the cursor behaviour.
- Loading branch information
Showing
3 changed files
with
18 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,13 @@ | ||
import Component from '@ember/component'; | ||
import { computed } from '@ember/object'; | ||
import { inject as service } from '@ember/service'; | ||
import PromiseArray from 'nomad-ui/utils/classes/promise-array'; | ||
|
||
export default Component.extend({ | ||
classNames: ['boxed-section'], | ||
|
||
router: service(), | ||
|
||
sortProperty: 'modifyIndex', | ||
sortDescending: true, | ||
sortedAllocations: computed('[email protected]', function() { | ||
|
@@ -20,7 +23,7 @@ export default Component.extend({ | |
|
||
actions: { | ||
gotoAllocation(allocation) { | ||
this.transitionToRoute('allocations.allocation', allocation); | ||
this.router.transitionTo('allocations.allocation', allocation.id); | ||
}, | ||
}, | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters