Merge pull request #1169 from wazuh/issue-1167

Added refresh action for agents preview table
This commit is contained in:
Jesús Ángel 2019-01-21 17:18:39 +01:00 committed by GitHub
commit e60d686333
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 12 additions and 1 deletions

View File

@ -211,4 +211,8 @@ export class AgentsPreviewController {
}
return;
}
reloadList() {
this.$scope.$broadcast('wazuhSearch', { term:'' });
}
}

View File

@ -695,4 +695,8 @@ md-sidenav {
color: #000000 !important;
background-color: #d9d9d9 !important;
border-color: #d9d9d9 !important;
}
.agents-prev-btn {
margin-top: 20px !important;
}

View File

@ -49,7 +49,10 @@
</md-card>
</div>
<wz-tag-filter path="'/agents'" query-fn="ctrl.query(q, search)" fields-model="ctrl.searchBarModel"></wz-tag-filter>
<div layout="row">
<wz-tag-filter flex path="'/agents'" query-fn="ctrl.query(q, search)" fields-model="ctrl.searchBarModel"></wz-tag-filter>
<md-button class="agents-prev-btn" ng-click="ctrl.reloadList()"><i class="fa fa-fw fa-refresh"></i> Refresh</md-button>
</div>
<div layout="row" class="margin-top-30">
<wz-table flex path="'/agents'" keys="['id','name','ip','status','group','os.name','os.version','version', 'dateAdd', 'lastKeepAlive']"