UI - Add UI options tab and setting to disable opening diff in a new tab (#3071)

This commit is contained in:
Oleksandr Perepadia
2025-04-09 15:56:23 +03:00
committed by GitHub
parent 456c6e3f58
commit 1378b5b2ff
5 changed files with 99 additions and 3 deletions

View File

@@ -721,6 +721,8 @@ class globalSettingsRequestForm(Form):
self.extra_proxies.errors.append('Both a name, and a Proxy URL is required.')
return False
class globalSettingsApplicationUIForm(Form):
open_diff_in_new_tab = BooleanField('Open diff page in a new tab', default=True, validators=[validators.Optional()])
# datastore.data['settings']['application']..
class globalSettingsApplicationForm(commonSettingsForm):
@@ -752,6 +754,7 @@ class globalSettingsApplicationForm(commonSettingsForm):
render_kw={"style": "width: 5em;"},
validators=[validators.NumberRange(min=0,
message="Should contain zero or more attempts")])
ui = FormField(globalSettingsApplicationUIForm)
class globalSettingsForm(Form):