Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
aa.gusti
/
opensipkd-base
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Settings
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 59fadecd
authored
Aug 06, 2022
by
aagusti
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
perbaikan menu button api
1 parent
3202f892
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
opensipkd/base/views/base_views_api.py
opensipkd/models/menus.py
opensipkd/base/views/base_views_api.py
View file @
59fadec
...
...
@@ -73,9 +73,9 @@ class BaseApi(object):
row
.
permissions
):
continue
buttons
.
append
(
Button
(
row
.
kode
,
title
=
row
.
nama
,
type
=
"button"
,
value
=
row
.
url
,
icon
=
row
.
icon
,
attributes
=
dict
(
method
=
row
.
url
)))
buttons
.
append
(
Button
(
row
.
kode
,
title
=
row
.
title
,
type
=
"button"
,
value
=
row
.
url
,
icon
=
row
.
icon
,
))
#
attributes=dict(method=row.url)))
return
tuple
(
buttons
)
def
update_headers
(
self
,
headers
):
...
...
opensipkd/models/menus.py
View file @
59fadec
...
...
@@ -27,6 +27,7 @@ class Menus(Base, NamaModel):
class_name
=
Column
(
String
(
256
))
need_login
=
Column
(
SmallInteger
,
server_default
=
"1"
)
permissions
=
Column
(
String
(
128
),
server_default
=
""
)
title
=
Column
(
String
(
256
))
children
=
relationship
(
"Menus"
,
backref
=
backref
(
'parent'
,
remote_side
=
[
id
]))
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment