From dd9e904378f535c4f7995ad694cada875d443a18 Mon Sep 17 00:00:00 2001 From: Thilina Pituwala Date: Sun, 31 May 2020 07:07:38 +0200 Subject: [PATCH] Fix menu names --- core/migrations/list.php | 1 + .../v20200530_270009_update_module_names.php | 16 ++++++++++++++++ web/admin/src/employees/lib.js | 11 ++++++++--- 3 files changed, 25 insertions(+), 3 deletions(-) create mode 100644 core/migrations/v20200530_270009_update_module_names.php diff --git a/core/migrations/list.php b/core/migrations/list.php index f21dca7a..5075a20e 100644 --- a/core/migrations/list.php +++ b/core/migrations/list.php @@ -1,5 +1,6 @@ executeQuery($sql); + } + + public function down(){ + return true; + } +} diff --git a/web/admin/src/employees/lib.js b/web/admin/src/employees/lib.js index 84685da7..ab67cebe 100644 --- a/web/admin/src/employees/lib.js +++ b/web/admin/src/employees/lib.js @@ -749,7 +749,12 @@ class EmployeeAdapter extends SubProfileEnabledAdapterBase { deleteBtn = ''; } // eslint-disable-next-line max-len - let html = `
${deleteBtn}
`; + let html = `
+ + + +${deleteBtn} +
`; html = html.replace(/_id_/g, id); html = html.replace(/_BASE_/g, this.baseUrl); return html; @@ -1213,7 +1218,7 @@ class TerminatedEmployeeAdapter extends EmployeeAdapter { getActionButtonsHtml(id) { // eslint-disable-next-line max-len - let html = `
+ let html = `
@@ -1298,7 +1303,7 @@ class ArchivedEmployeeAdapter extends SubProfileEnabledAdapterBase { getActionButtonsHtml(id) { // eslint-disable-next-line max-len - let html = '
'; + let html = '
'; html = html.replace(/_id_/g, id); html = html.replace(/_BASE_/g, this.baseUrl); return html;