public inbox for [email protected]
help / color / mirror / Atom feedFrom: Pradip Parkale <[email protected]>
To: pgadmin-hackers <[email protected]>
Subject: [PgAdmin][RM6845]: Inherit table icons not visible in tree view
Date: Thu, 11 Nov 2021 12:34:17 +0530
Message-ID: <CAJ9T6Su3xQ2=S+Ziqc+fq1t6CW2ye=V6GXhcCi10o=Ojr+=YUw@mail.gmail.com> (raw)
Hi Hackers,
Please find the attached patch for #6845 Inherit table icons not visible in
tree view.
--
Thanks & Regards,
Pradip Parkale
Software Engineer | EnterpriseDB Corporation
Attachments:
[application/octet-stream] RM6845.patch (1.5K, 3-RM6845.patch)
download | inline diff:
diff --git a/web/pgadmin/browser/server_groups/servers/databases/schemas/tables/__init__.py b/web/pgadmin/browser/server_groups/servers/databases/schemas/tables/__init__.py
index 2dcb6ca3c..74b60fd13 100644
--- a/web/pgadmin/browser/server_groups/servers/databases/schemas/tables/__init__.py
+++ b/web/pgadmin/browser/server_groups/servers/databases/schemas/tables/__init__.py
@@ -319,19 +319,19 @@ class TableView(BaseTableView, DataTypeReader, SchemaDiffTableCompare):
def get_icon_css_class(self, table_info, default_val='icon-table'):
if ('is_inherits' in table_info and
- table_info['is_inherits'] == '1') or \
+ table_info['is_inherits'] > '0') or \
('coll_inherits' in table_info and
len(table_info['coll_inherits']) > 0):
if ('is_inherited' in table_info and
- table_info['is_inherited'] == '1')\
+ table_info['is_inherited'] > '0')\
or ('relhassubclass' in table_info and
table_info['relhassubclass']):
default_val = 'icon-table-multi-inherit'
else:
default_val = 'icon-table-inherits'
elif ('is_inherited' in table_info and
- table_info['is_inherited'] == '1')\
+ table_info['is_inherited'] > '0')\
or ('relhassubclass' in table_info and
table_info['relhassubclass']):
default_val = 'icon-table-inherited'
view thread (2+ messages) latest in thread
reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: [email protected]
Cc: [email protected]
Subject: Re: [PgAdmin][RM6845]: Inherit table icons not visible in tree view
In-Reply-To: <CAJ9T6Su3xQ2=S+Ziqc+fq1t6CW2ye=V6GXhcCi10o=Ojr+=YUw@mail.gmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox