This commit is contained in:
parent
b3a7a170f0
commit
3e8775149a
|
@ -36,7 +36,7 @@
|
|||
}
|
||||
},
|
||||
"relations": {
|
||||
"user": {
|
||||
"sender": {
|
||||
"type": "belongsTo",
|
||||
"model": "VnUser",
|
||||
"foreignKey": "senderFk"
|
||||
|
|
|
@ -23,7 +23,7 @@
|
|||
{"state": "client.card.recovery.index", "icon": "icon-recovery"},
|
||||
{"state": "client.card.webAccess", "icon": "cloud"},
|
||||
{"state": "client.card.log", "icon": "history"},
|
||||
{"state": "client.card.sms", "icon": "contact_support"},
|
||||
{"state": "client.card.sms", "icon": "sms"},
|
||||
{
|
||||
"description": "Credit management",
|
||||
"icon": "monetization_on",
|
||||
|
|
|
@ -13,7 +13,6 @@
|
|||
<vn-thead>
|
||||
<vn-tr>
|
||||
<vn-th field="senderFk">Sender</vn-th>
|
||||
<vn-th field="sender" number>Number sender</vn-th>
|
||||
<vn-th field="destination" number>Destination</vn-th>
|
||||
<vn-th field="message">Message</vn-th>
|
||||
<vn-th field="status">Status</vn-th>
|
||||
|
@ -24,10 +23,9 @@
|
|||
<vn-tr ng-repeat="clientSms in clientSmss">
|
||||
<vn-td>
|
||||
<span class="link" ng-click="workerDescriptor.show($event, clientSms.sms.senderFk)">
|
||||
{{::clientSms.sms.user.name}}
|
||||
{{::clientSms.sms.sender.name}}
|
||||
</span>
|
||||
</vn-td>
|
||||
<vn-td number expand>{{::clientSms.sms.sender}}</vn-td>
|
||||
<vn-td number expand>{{::clientSms.sms.destination}}</vn-td>
|
||||
<vn-td>{{::clientSms.sms.message}}</vn-td>
|
||||
<vn-td>{{::clientSms.sms.status}}</vn-td>
|
||||
|
|
|
@ -19,7 +19,7 @@ export default class Controller extends Section {
|
|||
'status',
|
||||
'created'],
|
||||
include: {
|
||||
relation: 'user',
|
||||
relation: 'sender',
|
||||
scope: {
|
||||
fields: ['name']
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue