mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2026-09-03 20:52:57 -05:00
Allow the dashboard panel to be closed. Fixes #2506
This commit is contained in:
committed by
Dave Page
parent
2d65312910
commit
501120701e
@@ -18,7 +18,7 @@ class MenuItem(object):
|
||||
class Panel(object):
|
||||
def __init__(self, name, title, content='', width=500, height=600, isIframe=True,
|
||||
showTitle=True, isCloseable=True, isPrivate=False, priority=None,
|
||||
icon=None, data=None, events=None):
|
||||
icon=None, data=None, events=None, limit=None, canHide=False):
|
||||
self.name = name
|
||||
self.title = title
|
||||
self.content = content
|
||||
@@ -31,6 +31,8 @@ class Panel(object):
|
||||
self.icon = icon
|
||||
self.data = data
|
||||
self.events = events
|
||||
self.limit = limit
|
||||
self.canHide = canHide
|
||||
if priority is None:
|
||||
global PRIORITY
|
||||
PRIORITY += 100
|
||||
|
||||
Reference in New Issue
Block a user