public inbox for [email protected]
help / color / mirror / Atom feed[PgAdmin][RM6845]: Inherit table icons not visible in tree view
2+ messages / 2 participants
[nested] [flat]
* [PgAdmin][RM6845]: Inherit table icons not visible in tree view
@ 2021-11-11 07:04 Pradip Parkale <[email protected]>
2021-11-11 07:28 ` Re: [PgAdmin][RM6845]: Inherit table icons not visible in tree view Akshay Joshi <[email protected]>
0 siblings, 1 reply; 2+ messages in thread
From: Pradip Parkale @ 2021-11-11 07:04 UTC (permalink / raw)
To: pgadmin-hackers
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'
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: [PgAdmin][RM6845]: Inherit table icons not visible in tree view
2021-11-11 07:04 [PgAdmin][RM6845]: Inherit table icons not visible in tree view Pradip Parkale <[email protected]>
@ 2021-11-11 07:28 ` Akshay Joshi <[email protected]>
0 siblings, 0 replies; 2+ messages in thread
From: Akshay Joshi @ 2021-11-11 07:28 UTC (permalink / raw)
To: Pradip Parkale <[email protected]>; +Cc: pgadmin-hackers
Thanks, the patch applied.
On Thu, Nov 11, 2021 at 12:34 PM Pradip Parkale <
[email protected]> wrote:
> 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
>
--
*Thanks & Regards*
*Akshay Joshi*
*pgAdmin Hacker | Principal Software Architect*
*EDB Postgres <http://edbpostgres.com>*
*Mobile: +91 976-788-8246*
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2021-11-11 07:28 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2021-11-11 07:04 [PgAdmin][RM6845]: Inherit table icons not visible in tree view Pradip Parkale <[email protected]>
2021-11-11 07:28 ` Akshay Joshi <[email protected]>
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox