Make name field be the first in user list

https://github.com/rancher/rancher/issues/13764
This commit is contained in:
loganhz 2018-06-03 20:36:58 +08:00
parent d2652e7946
commit 67ad60550a
2 changed files with 11 additions and 12 deletions

View File

@ -5,17 +5,16 @@ export default Controller.extend({
access: service(),
sortBy: 'username',
headers: [
{
translationKey: 'generic.id',
name: 'id',
sort: ['id'],
width: 150,
},
{
translationKey: 'generic.name',
name: 'name',
sort: ['name'],
// width: '120'
width: 250,
},
{
translationKey: 'generic.id',
name: 'id',
sort: ['id'],
},
{
translationKey: 'accountsPage.index.table.username',

View File

@ -1,11 +1,6 @@
<td valign="middle" class="row-check" style="padding-top: 2px;">
{{check-box nodeId=model.id}}
</td>
<td data-title="{{dt.id}}">
<a href="{{href-to 'global-admin.accounts.detail' model.id}}">
{{model.id}}
</a>
</td>
<td data-title="{{dt.name}}">
{{#if model.name}}
{{model.name}}
@ -13,6 +8,11 @@
<span class="text-muted">{{t 'generic.none'}}</span>
{{/if}}
</td>
<td data-title="{{dt.id}}">
<a href="{{href-to 'global-admin.accounts.detail' model.id}}">
{{model.id}}
</a>
</td>
<td data-title="{{dt.username}}">
{{#if model.username}}
{{model.username}}