Skip to content

Commit

Permalink
Merge branch 'noc-inv-cosmetic' into 'master'
Browse files Browse the repository at this point in the history
inv.inv cosmetic improvements

See merge request noc/noc!8495
  • Loading branch information
Dmitry Volodin committed Oct 8, 2024
2 parents ac6e425 + bba7cfa commit ce459cb
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 8 deletions.
3 changes: 2 additions & 1 deletion ui/web/inv/inv/plugins/channel/ChannelPanel.js
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,8 @@ Ext.define("NOC.inv.inv.plugins.channel.ChannelPanel", {
var data = Ext.decode(response.responseText);
if(data.status){
NOC.info(data.msg);
NOC.launch("inv.channel", "history", {"args": [data.channel]})
NOC.launch("inv.channel", "history", {"args": [data.channel]});
me.showChannelPanel();
} else{
NOC.error(data.msg);
}
Expand Down
1 change: 1 addition & 0 deletions ui/web/inv/inv/plugins/channel/MagicPanel.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ Ext.define("NOC.inv.inv.plugins.channel.MagicPanel", {
xtype: "grid",
scrollable: "y",
height: 310,
title: __("Create channel"),
allowDeselect: true,
store: new Ext.data.Store({
fields: ["controller", "start_endpoint", "start_endpoint__label", "end_endpoint", "end_endpoint__label"],
Expand Down
14 changes: 7 additions & 7 deletions ui/web/inv/inv/plugins/pconf/Controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,21 +30,21 @@ Ext.define("NOC.inv.inv.plugins.pconf.Controller", {
vm.set("statusDisabled", hasStatuses);
},
onReload: function(){
var me = this;
me.getView().mask(__("Loading..."));
var me = this,
panel = me.getView();
panel.mask(__("Loading..."));
Ext.Ajax.request({
url: "/inv/inv/" + me.getView().currentId + "/plugin/pconf/",
method: "GET",
scope: me,
success: function(response){
var data = Ext.decode(response.responseText),
view = me.getView();
view.preview(data);
view.unmask();
var data = Ext.decode(response.responseText);
panel.preview(data);
panel.unmask();
},
failure: function(){
NOC.error(__("Failed to load data"));
me.getView().unmask();
panel.unmask();
},
});
},
Expand Down
1 change: 1 addition & 0 deletions ui/web/inv/inv/plugins/pconf/PConfEditPlugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ Ext.define("NOC.inv.inv.plugins.pconf.PConfEditPlugin", {
field: {
xtype: "combobox",
triggers: editorTriggers,
editable: false,
store: {
fields: ["id", "label"],
data: record.get("options") || [],
Expand Down
2 changes: 2 additions & 0 deletions ui/web/inv/inv/plugins/pconf/PConfPanel.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ Ext.define("NOC.inv.inv.plugins.pconf.PConfPanel", {
displayField: "text",
valueField: "value",
fieldLabel: __("Mode"),
labelWidth: 130,
allowBlank: false,
labelAlign: "right",
bind: {
Expand Down Expand Up @@ -205,6 +206,7 @@ Ext.define("NOC.inv.inv.plugins.pconf.PConfPanel", {
border: false,
autoScroll: true,
stateful: true,
emptyText: __("No data"),
bind: {
store: "{gridStore}",
},
Expand Down

0 comments on commit ce459cb

Please sign in to comment.