Skip to content

Commit

Permalink
UI-2438: Hide API URL if user is whitelabeling and is not a superdupe…
Browse files Browse the repository at this point in the history
…r admin
  • Loading branch information
JRMaitre committed Oct 25, 2016
1 parent 96ecb96 commit a0a06f1
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
5 changes: 3 additions & 2 deletions src/apps/core/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -659,8 +659,9 @@ define(function(require){
account: acc,
authToken: self.getAuthToken(),
apiUrl: self.apiUrl,
version: monster.config.version
}
version: monster.config.version,
hideApiUrl: monster.util.isWhitelabeling() && !monster.util.isSuperDuper()
},
template = monster.template(self, 'dialog-accountInfo', dataTemplate);

monster.ui.dialog(template, {
Expand Down
10 changes: 6 additions & 4 deletions src/apps/core/views/dialog-accountInfo.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,12 @@
<td>{{authToken}}</td>
</tr>

<tr>
<td>{{ i18n.debugAccountDialog.apiUrl }}</td>
<td>{{apiUrl}}</td>
</tr>
{{#unless hideApiUrl}}
<tr>
<td>{{ i18n.debugAccountDialog.apiUrl }}</td>
<td>{{apiUrl}}</td>
</tr>
{{/unless}}

<tr>
<td>{{ i18n.debugAccountDialog.version }}</td>
Expand Down

0 comments on commit a0a06f1

Please sign in to comment.