Skip to content
This repository has been archived by the owner on May 4, 2022. It is now read-only.

Commit

Permalink
fix: removes unused avatar setting
Browse files Browse the repository at this point in the history
  • Loading branch information
Doug-Reed committed Aug 8, 2018
1 parent daf8324 commit 4042e12
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 23 deletions.
10 changes: 0 additions & 10 deletions components/portal/settings/controllers.js
Expand Up @@ -88,16 +88,6 @@ define(['angular'], function(angular) {
});
};

$scope.avatarOptOut = function() {
$rootScope.optAvatar = false;
$sessionStorage.optAvatar = false;
};

$scope.avatarOptIn = function() {
$rootScope.optAvatar = true;
$sessionStorage.optAvatar = true;
};

init();
}]);
});
14 changes: 1 addition & 13 deletions components/portal/settings/partials/user-settings.html
Expand Up @@ -50,19 +50,7 @@ <h4 class="md-subhead" ng-if="kvEnabled">Reset Zone<br>
<small>Click to reset your portal layout.</small>
</div>
</div>
<div ng-show="optAvatar" layout="column" layout-gt-xs="row" layout-align="start center">
<md-button class="md-accent md-raised" layout-align-xs="center start" ng-click="avatarOptOut()">
Do Not Use My Photo
</md-button>
<small>Requires page refresh to take effect.</small>
</div>
<div ng-show="!optAvatar" layout-align-xs="center start" layout="column" layout-align="start center" layout-gt-xs="row">
<md-button class="md-accent md-raised" ng-click="avatarOptIn()">
Use My Photo
</md-button>
<small>Requires page refresh to take effect.</small>
</div>
<h4 class="md-subhead">Reset In-Browser State<br>
<h4 class="md-subhead">Reset In-Browser State<br>
<small>Clear in-browser session storage and local storage. This is perfectly safe and may cause some changes to take effect faster.</small>
</h4>
<div layout="column" layout-gt-xs="row">
Expand Down

0 comments on commit 4042e12

Please sign in to comment.