Skip to content

Commit

Permalink
Remove profile toggle and always show Profile Editor link (#4448)
Browse files Browse the repository at this point in the history
* Remove Profile Editor toggle

`profile` isn't an optional plugin anymore; doesn't need this display toggle. (Plus it was erroneously toggling off in the absence of the `basal` plugin — see #4442.)

* Remove profilecontrol class
  • Loading branch information
unsoluble authored and PieterGit committed Mar 5, 2019
1 parent 654be7b commit 83321fa
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions lib/client/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -1077,8 +1077,6 @@ client.load = function load(serverSettings, callback) {
$('.foodcontrol').toggle(client.settings.enable.indexOf('food') > -1);
// hide cob control if not enabled
$('.cobcontrol').toggle(client.settings.enable.indexOf('cob') > -1);
// hide profile controls if not enabled
$('.profilecontrol').toggle(client.settings.enable.indexOf('profile') > -1);
container.toggleClass('has-minor-pills', client.plugins.hasShownType('pill-minor', client.settings));

function prepareEntries ( ) {
Expand Down
2 changes: 1 addition & 1 deletion views/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@
<form id="settings-form" role="form" >
<ul class="navigation" role="navigation" aria-label="Settings">
<li><a href="report" target="reports" class="translate">Reports</a></li>
<li class="profilecontrol"><a id="editprofilelink" href="profile" target="profileeditor" class="translate">Profile Editor</a></li>
<li><a id="editprofilelink" href="profile" target="profileeditor" class="translate">Profile Editor</a></li>
<li class="foodcontrol"><a id="editfoodlink" href="food" target="foodeditor" class="translate">Food Editor</a></li>
<li><a id="admintoolslink" href="admin" target="admintools" class="translate">Admin Tools</a></li>
<li class="multilink">
Expand Down

0 comments on commit 83321fa

Please sign in to comment.