added tranlations to log component

This commit is contained in:
Gerard 2018-11-29 16:03:59 +01:00
parent f29b5dff38
commit 86c05d10e4
3 changed files with 20 additions and 7 deletions

View File

@ -29,10 +29,10 @@
</div>
<div>
<span translate class="label">Action</span><span class="label">: </span>
<span translate class="value">{{::log.action}}</span>
<span translate class="value">{{::$ctrl.actionsText[log.action]}}</span>
</div>
<div>
<span translate class="label"></span>Name<span class="label">: </span>
<span translate class="label">Name</span><span class="label">: </span>
<span translate class="value">{{::log.changedModelValue}}</span>
</div>
</div>
@ -44,7 +44,7 @@
{{::log.changedModel}}
</vn-td>
<vn-td translate class="expendable">
{{::log.action}}
{{::$ctrl.actionsText[log.action]}}
</vn-td>
<vn-td class="expendable">
{{::log.changedModelValue}}

View File

@ -1,7 +1,19 @@
import ngModule from '../../module';
import './style.scss';
export default class Controller {
constructor() {
this.actionsText = {
'insert': 'Creates',
'update': 'Updates',
'delete': 'Deletes',
'select': 'Views'
};
}
}
ngModule.component('vnLog', {
controller: Controller,
template: require('./index.html'),
bindings: {
model: '<'

View File

@ -4,7 +4,8 @@ Changed by: Cambiado por
Before: Antes
After: Despues
History: Historial
insert: Crear
delete: Eliminar
update: Actualizar
Name: Nombre
Name: Nombre
Creates: Crea
Updates: Actualiza
Deletes: Elimina
Views: Visualiza