Refactor to use get method to access strings vs direct

This commit is contained in:
gconsidine
2017-07-12 17:00:26 -04:00
parent 594c4d6ce2
commit 9b22df228f
16 changed files with 45 additions and 50 deletions

View File

@@ -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;