fix: Refactor dashboard links in leave policy (bp #22519) (#22529)

* fix: Refactor dashboard links in leave policy (#22519)

* fix: refactor dashboard links in leave policy

* fx: code fix

* fix: add labels to links

* fix: code change

(cherry picked from commit ec84afa86d)

* fix: remove extra lines

Co-authored-by: Michelle Alva <50285544+michellealva@users.noreply.github.com>
Co-authored-by: Rucha Mahabal <ruchamahabal2@gmail.com>
This commit is contained in:
mergify[bot]
2020-06-30 18:12:47 +05:30
committed by GitHub
parent 5d5cb0ac28
commit 4e17c40589

View File

@@ -1,4 +1,5 @@
from __future__ import unicode_literals from __future__ import unicode_literals
from frappe import _
def get_data(): def get_data():
return { return {
@@ -8,12 +9,11 @@ def get_data():
}, },
'transactions': [ 'transactions': [
{ {
'items': ['Employee'] 'label': _('Employees'),
}, 'items': ['Employee', 'Employee Grade']
{
'items': ['Employee Grade']
}, },
{ {
'label': _('Leaves'),
'items': ['Leave Allocation'] 'items': ['Leave Allocation']
}, },
] ]