Removed console.logs and track by filters

This commit is contained in:
JuanjiJG 2018-09-24 15:14:57 +02:00
parent cbb5570240
commit 2cd6ffde5e
4 changed files with 2 additions and 5 deletions

View File

@ -575,7 +575,6 @@ class AgentsController {
*/
async switchConfigTab(configurationTab, sections) {
try {
console.log('DEBUG PARAMS',configurationTab, sections)
this.$scope.load = true;
this.$scope.currentConfig = null;
this.$scope.XMLContent = false;
@ -583,7 +582,6 @@ class AgentsController {
this.$scope.configurationSubTab = false;
this.$scope.configurationTab = configurationTab;
this.$scope.currentConfig = await queryConfig(this.$scope.agent.id, sections, this.apiReq, this.errorHandler);
console.log('DEBUG RESULT',this.$scope.currentConfig)
this.$scope.load = false;
if (!this.$scope.$$phase) this.$scope.$digest();
} catch (error) {

View File

@ -108,7 +108,6 @@ class NewConfigurationController {
if (result.length) {
this.$scope.currentConfig = result[0];
}
console.log(this.$scope.currentConfig)
this.$scope.load = false;
if (!this.$scope.$$phase) this.$scope.$digest();
} catch (error) {

View File

@ -98,7 +98,7 @@
<th class="wz-text-left col-lg-8">Path</th>
</thead>
<tbody class="wz-word-wrap">
<tr ng-repeat="item in currentConfig.osquery.packs track by $index">
<tr ng-repeat="item in currentConfig.osquery.packs">
<td>{{ item.name }}</td>
<td>{{ item.path }}</td>
</tr>

View File

@ -35,7 +35,7 @@
<th class="wz-text-left">Alt. port</th>
</thead>
<tbody class="wz-word-wrap">
<tr ng-repeat="item in currentConfig['vulnerability-detector'].feeds track by $index">
<tr ng-repeat="item in currentConfig['vulnerability-detector'].feeds">
<td>{{ item.name || '---' }}</td>
<td>{{ item.version || '---' }}</td>
<td>{{ item.interval || '---' }}</td>