diff --git a/client/core/src/components/log/index.html b/client/core/src/components/log/index.html index 00293b793..925034653 100644 --- a/client/core/src/components/log/index.html +++ b/client/core/src/components/log/index.html @@ -29,10 +29,10 @@
Action: - {{::log.action}} + {{::$ctrl.actionsText[log.action]}}
- Name: + Name: {{::log.changedModelValue}}
@@ -44,7 +44,7 @@ {{::log.changedModel}} - {{::log.action}} + {{::$ctrl.actionsText[log.action]}} {{::log.changedModelValue}} diff --git a/client/core/src/components/log/index.js b/client/core/src/components/log/index.js index 7e5a8bd89..99290837a 100644 --- a/client/core/src/components/log/index.js +++ b/client/core/src/components/log/index.js @@ -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: '<' diff --git a/client/core/src/components/log/locale/es.yml b/client/core/src/components/log/locale/es.yml index 2349be4dd..d63d67047 100644 --- a/client/core/src/components/log/locale/es.yml +++ b/client/core/src/components/log/locale/es.yml @@ -4,7 +4,8 @@ Changed by: Cambiado por Before: Antes After: Despues History: Historial -insert: Crear -delete: Eliminar -update: Actualizar -Name: Nombre \ No newline at end of file +Name: Nombre +Creates: Crea +Updates: Actualiza +Deletes: Elimina +Views: Visualiza \ No newline at end of file