added tranlations to log component
This commit is contained in:
parent
f29b5dff38
commit
86c05d10e4
|
@ -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}}
|
||||
|
|
|
@ -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: '<'
|
||||
|
|
|
@ -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
|
Loading…
Reference in New Issue