mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Fixed primary key/unique constraint icon issue.
This commit is contained in:
parent
31bbdd6a12
commit
eaa90ee8eb
@ -201,8 +201,6 @@ class IndexConstraintView(PGChildNodeView):
|
||||
|
||||
node_label = _('Index constraint')
|
||||
|
||||
node_icon = "icon-%s" % node_type
|
||||
|
||||
parent_ids = [
|
||||
{'type': 'int', 'id': 'gid'},
|
||||
{'type': 'int', 'id': 'sid'},
|
||||
@ -1014,6 +1012,8 @@ class PrimaryKeyConstraintView(IndexConstraintView):
|
||||
|
||||
constraint_type = "p"
|
||||
|
||||
node_icon = "icon-%s" % node_type
|
||||
|
||||
|
||||
class UniqueConstraintView(IndexConstraintView):
|
||||
node_type = 'unique_constraint'
|
||||
@ -1024,6 +1024,8 @@ class UniqueConstraintView(IndexConstraintView):
|
||||
|
||||
constraint_type = "u"
|
||||
|
||||
node_icon = "icon-%s" % node_type
|
||||
|
||||
|
||||
primary_key_constraint = ConstraintRegistry(
|
||||
'primary_key', PrimaryKeyConstraintModule, PrimaryKeyConstraintView
|
||||
|
Loading…
Reference in New Issue
Block a user