Skip to content

Commit

Permalink
fix dashboard and tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
thehesiod committed Oct 27, 2018
1 parent c8b91ce commit e6541df
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,15 +49,15 @@ upvote.admin.dashboard.DashboardController = class {
/** @private */
init_() {
this.blockableQueryResource_['search'](
{'filter': 'suspect', 'platform': 'all', 'type': 'all'})['$promise']
{'filter': 'suspect', 'platform': 'all', 'type': 'all', 'withContext': 'true'})['$promise']
.then((response) => {
this.suspectBlockables = response['content'];
})
.catch((response) => {
this.errorService_.createToastFromError(response);
});
this.blockableQueryResource_['search'](
{'filter': 'flagged', 'platform': 'all', 'type': 'all'})['$promise']
{'filter': 'flagged', 'platform': 'all', 'type': 'all', 'withContext': 'true'})['$promise']
.then((response) => {
this.flaggedBlockables = response['content'];
})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<listing-body>
<uv-blockable-listing ng-repeat="item in dashboardCtrl.suspectBlockables"
item="item"
on-selected="dashboardCtrl.onSelectedItem(item.id)">
on-selected="dashboardCtrl.onSelectedItem(item.blockable.id)">
</uv-blockable-listing>
</listing-body>
</uv-listing>
Expand All @@ -33,7 +33,7 @@
<listing-body>
<uv-blockable-listing ng-repeat="item in dashboardCtrl.flaggedBlockables"
item="item"
on-selected="dashboardCtrl.onSelectedItem(item.id)">
on-selected="dashboardCtrl.onSelectedItem(item.blockable.id)">
</uv-blockable-listing>
</listing-body>
</uv-listing>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,32 +75,34 @@
</span>
<span ng-if="hostCtrl.hostUtils.isSantaHost(host)"
class="md-subhead uv-host-card-detail">
Should Upload Logs:
<span class="uv-host-card-value">
{{ host.shouldUploadLogs }}
</span>
</span>

<!-- Details -->
<span ng-if="hostCtrl.hostUtils.isSantaHost(host) && hostCtrl.detailsVisible(host.id)"
class="md-subhead uv-host-card-detail">
Transitive Whitelisting Enabled:
<span class="uv-host-card-value">
{{ host.transitiveWhitelistingEnabled }}
</span>
</span>
<span ng-if="hostCtrl.hostUtils.isSantaHost(host)"
<span ng-if="hostCtrl.hostUtils.isSantaHost(host) && hostCtrl.detailsVisible(host.id)"
class="md-subhead uv-host-card-detail">
Whitelist REGEX:
<span class="uv-host-card-value">
{{ host.directoryWhitelistRegex }}
</span>
</span>
<span ng-if="hostCtrl.hostUtils.isSantaHost(host)"
<span ng-if="hostCtrl.hostUtils.isSantaHost(host) && hostCtrl.detailsVisible(host.id)"
class="md-subhead uv-host-card-detail">
Blacklist REGEX:
<span class="uv-host-card-value">
{{ host.directoryBlacklistRegex }}
</span>
</span>
<span ng-if="hostCtrl.hostUtils.isSantaHost(host)"
class="md-subhead uv-host-card-detail">
Should Upload Logs:
<span class="uv-host-card-value">
{{ host.shouldUploadLogs }}
</span>
</span>
<span class="md-subhead uv-host-card-detail"
ng-if="hostCtrl.detailsVisible(host.id)">
First Seen:
Expand Down

0 comments on commit e6541df

Please sign in to comment.