Skip to content

Commit cc5b47c

Browse files
LancearPirni
andcommitted
Add preference for insert with relations
Co-authored-by: Christian P. <pirnichristian@gmail.com>
1 parent 5103c47 commit cc5b47c

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

web/pgadmin/tools/erd/__init__.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -437,6 +437,20 @@ def register_preferences(self):
437437
)
438438
)
439439

440+
self.preference.register(
441+
'options',
442+
'insert_table_with_relations',
443+
gettext('Insert Table With Relations'),
444+
'boolean',
445+
False,
446+
category_label=PREF_LABEL_OPTIONS,
447+
help_str=gettext(
448+
'Whether inserting a table via drag and drop should '
449+
'also insert its relations to the existing tables in '
450+
'the diagram.'
451+
)
452+
)
453+
440454
self.preference.register(
441455
'options', 'cardinality_notation',
442456
gettext('Cardinality Notation'), 'radioModern', 'crows',

0 commit comments

Comments
 (0)