-
Notifications
You must be signed in to change notification settings - Fork 99
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(components): bhJournalLink for linkin records
This commit adds a component for linking record_uuids in the journal via some display method. Currently the display is the same one that is shown as the display value of the filter - this may need to change. A demonstration of this is in the Trial Balance Error Links.
- Loading branch information
Showing
4 changed files
with
25 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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
var templateStr = | ||
'<a ui-sref="journal({ filters : [{ key : \'record_uuid\', value : $ctrl.recordUuid, displayValue: $ctrl.display }] })" ui-sref-opts="{ reload : false }">' + | ||
'<span translate>{{ $ctrl.display }}</span>' + | ||
'</a>'; | ||
|
||
angular.module('bhima.components') | ||
.component('bhJournalLink', { | ||
template : templateStr, | ||
bindings : { recordUuid : '<', display : '@' }, | ||
}); | ||
|
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
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