Fix OAuth scopes display

Before, we were sending the wrong kind of data (namedtuple instead of dict) in the non-superuser case, which broke prod. Now, we always explicitly send a standard dictionary.

Fixes https://jira.coreos.com/browse/QUAY-871
This commit is contained in:
Joseph Schorr 2018-03-16 13:03:42 -04:00
parent 32a473d23c
commit 86f898d9bd
3 changed files with 7 additions and 6 deletions

View file

@ -112,9 +112,9 @@
<tr ng-repeat="(scopeName, scopeInfo) in OAuthService.SCOPES">
<td>
<label onclick="event.stopPropagation()">
<input type="checkbox" value="scopeInfo[0]" ng-model="genScopes[scopeName]">{{ scopeInfo[3] }}
<input type="checkbox" value="scopeInfo.scope" ng-model="genScopes[scopeName]">{{ scopeInfo.title }}
</label>
<div class="scope-description">{{ scopeInfo[4] }}</div>
<div class="scope-description">{{ scopeInfo.description }}</div>
</td>
</tr>
</table>