mirror of
https://github.com/ansible/awx.git
synced 2026-03-06 11:11:07 -03:30
translate insights tooltip
This commit is contained in:
@@ -5,9 +5,11 @@
|
|||||||
*************************************************/
|
*************************************************/
|
||||||
|
|
||||||
export default [ 'InsightsData', '$scope', 'moment', '$state', 'InventoryData',
|
export default [ 'InsightsData', '$scope', 'moment', '$state', 'InventoryData',
|
||||||
'InsightsService', 'CanRemediate',
|
'InsightsService', 'CanRemediate', 'InsightsStrings',
|
||||||
function (data, $scope, moment, $state, InventoryData, InsightsService,
|
function (data, $scope, moment, $state, InventoryData, InsightsService,
|
||||||
CanRemediate) {
|
CanRemediate, strings) {
|
||||||
|
|
||||||
|
$scope.strings = strings;
|
||||||
|
|
||||||
function init() {
|
function init() {
|
||||||
$scope.reports = (data && data.reports) ? data.reports : [];
|
$scope.reports = (data && data.reports) ? data.reports : [];
|
||||||
|
|||||||
@@ -52,7 +52,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div ng-click="refresh()">
|
<div ng-click="refresh()">
|
||||||
<i class="fa fa-refresh InsightsNav-refresh"
|
<i class="fa fa-refresh InsightsNav-refresh"
|
||||||
aw-tool-tip="Refresh Insights" data-placement="left" data-original-title="" title=""
|
aw-tool-tip="{{ strings.get('tooltips.REFRESH_INSIGHTS') }}" data-placement="left" data-original-title="" title=""
|
||||||
ng-hide="!insights_credential">
|
ng-hide="!insights_credential">
|
||||||
</i>
|
</i>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -0,0 +1,14 @@
|
|||||||
|
function InsightsStrings (BaseString) {
|
||||||
|
BaseString.call(this, 'instanceGroups');
|
||||||
|
|
||||||
|
const { t } = this;
|
||||||
|
const ns = this.instanceGroups;
|
||||||
|
|
||||||
|
ns.tooltips = {
|
||||||
|
REFRESH_INSIGHTS: t.s('Refresh Insights'),
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
InsightsStrings.$inject = ['BaseStringService'];
|
||||||
|
|
||||||
|
export default InsightsStrings;
|
||||||
@@ -7,9 +7,11 @@
|
|||||||
import controller from './insights.controller';
|
import controller from './insights.controller';
|
||||||
import planFilter from './plan-filter';
|
import planFilter from './plan-filter';
|
||||||
import service from './insights.service';
|
import service from './insights.service';
|
||||||
|
import strings from './insights.strings';
|
||||||
|
|
||||||
export default
|
export default
|
||||||
angular.module('insightsDashboard', [])
|
angular.module('insightsDashboard', [])
|
||||||
.filter('planFilter', planFilter)
|
.filter('planFilter', planFilter)
|
||||||
.controller('InsightsController', controller)
|
.controller('InsightsController', controller)
|
||||||
.service('InsightsService', service);
|
.service('InsightsService', service)
|
||||||
|
.service('InsightsStrings', strings);
|
||||||
|
|||||||
Reference in New Issue
Block a user