mirror of
https://github.com/ansible/awx.git
synced 2026-05-20 07:17:40 -02:30
Refactor to use get method to access strings vs direct
This commit is contained in:
@@ -22,7 +22,7 @@ function AtTruncateController (strings) {
|
||||
|
||||
vm.tooltip = {
|
||||
popover: {
|
||||
text: vm.strings.components.truncate.DEFAULT,
|
||||
text: vm.strings.get('truncate.DEFAULT'),
|
||||
on: 'mouseover',
|
||||
position: 'top',
|
||||
icon: 'fa fa-clone',
|
||||
@@ -32,7 +32,7 @@ function AtTruncateController (strings) {
|
||||
};
|
||||
|
||||
function copyToClipboard() {
|
||||
vm.tooltip.popover.text = vm.strings.components.truncate.COPIED;
|
||||
vm.tooltip.popover.text = vm.strings.get('truncate.COPIED');
|
||||
|
||||
let textarea = el[0].getElementsByClassName('at-Truncate-textarea')[0];
|
||||
textarea.value = string;
|
||||
@@ -65,4 +65,4 @@ atTruncate.$inject = [
|
||||
'PathService'
|
||||
];
|
||||
|
||||
export default atTruncate;
|
||||
export default atTruncate;
|
||||
|
||||
Reference in New Issue
Block a user