Skip to content

Commit 06db3ef

Browse files
committed
feat: one WebApp for 1 DIRAC Setup
1 parent 4442575 commit 06db3ef

2 files changed

Lines changed: 0 additions & 30 deletions

File tree

src/WebAppDIRAC/WebApp/handler/RootHandler.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,6 @@ def web_changeGroup(self, to: str):
2424
"""
2525
return TornadoResponse().redirect(self.__change(group=to)) # pylint: disable=no-member
2626

27-
def web_changeSetup(self, to: str):
28-
"""Change setup
29-
30-
:return: TornadoResponse()
31-
"""
32-
return TornadoResponse().redirect(self.__change(setup=to)) # pylint: disable=no-member
33-
3427
def __change(self, setup: str = None, group: str = None) -> str:
3528
"""Generate URL to change setup/group, set query"""
3629
root = Conf.rootURL().strip("/")

src/WebAppDIRAC/WebApp/static/core/js/views/tabs/SettingsPanel.js

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -80,11 +80,6 @@ Ext.define("Ext.dirac.views.tabs.SettingsPanel", {
8080
text: "Group:",
8181
},
8282
me.addGroupsButton(),
83-
{
84-
xtype: "label",
85-
text: "Setup:",
86-
},
87-
me.addSetupButton(),
8883
{
8984
xtype: "label",
9085
text: "Theme:",
@@ -226,24 +221,6 @@ Ext.define("Ext.dirac.views.tabs.SettingsPanel", {
226221

227222
return new Ext.button.Button(button_group);
228223
},
229-
addSetupButton: function () {
230-
var setup_data = {
231-
text: GLOBAL.APP.configData["setup"],
232-
menu: [],
233-
};
234-
235-
for (var i = 0; i < GLOBAL.APP.configData["validSetups"].length; i++)
236-
setup_data.menu.push({
237-
text: GLOBAL.APP.configData["validSetups"][i],
238-
handler: function () {
239-
var me = this;
240-
241-
location.href = GLOBAL.BASE_URL + "changeSetup?to=" + me.text;
242-
},
243-
});
244-
245-
return new Ext.button.Button(setup_data);
246-
},
247224
addThemeButton: function () {
248225
var me = this;
249226

0 commit comments

Comments
 (0)