{
+ this.excluded = data.data.exists;
+ });
+ }
+
+ handleExcluded() {
+ if (this.excluded) {
+ this.$http.delete(`workerDisableExcludeds/${this.entity.id}`);
+ this.excluded = false;
+ } else {
+ this.$http.post(`workerDisableExcludeds`, {workerFk: this.entity.id, dated: new Date});
+ this.excluded = true;
+ }
}
loadData() {
diff --git a/modules/worker/front/locale/es.yml b/modules/worker/front/locale/es.yml
index 1414d089bc..672f4c52f9 100644
--- a/modules/worker/front/locale/es.yml
+++ b/modules/worker/front/locale/es.yml
@@ -20,4 +20,7 @@ View worker: Ver trabajador
Worker id: Id trabajador
Workers: Trabajadores
worker: trabajador
-Go to the worker: Ir al trabajador
\ No newline at end of file
+Go to the worker: Ir al trabajador
+Click to exclude the user from getting disabled: Marcar para no deshabilitar
+Click to allow the user to be disabled: Marcar para deshabilitar
+This user can't be disabled: Fijado para no deshabilitar
\ No newline at end of file