{
+ 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
diff --git a/package.json b/package.json
index f85af904c2..ae4817ab0a 100644
--- a/package.json
+++ b/package.json
@@ -16,6 +16,7 @@
"bcrypt": "^5.0.1",
"bmp-js": "^0.1.0",
"compression": "^1.7.3",
+ "form-data": "^4.0.0",
"fs-extra": "^5.0.0",
"ftps": "^1.2.0",
"got": "^10.7.0",