Project

General

Profile

Revision 9a445246

ID9a445246601c951b7806d161559863c41c7d5f0e
Parent f82ad767
Child 154d9b81

Added by Francois POIROTTE over 13 years ago

Ajout d'un bouton dans la barre d'outils de VigiGraph, permettant d'accéder à la page de métrologie
contenant tous les graphes de l'hôte sélectionné (#314).

git-svn-id: https://vigilo-dev.si.c-s.fr/svn@5853 b22e2e97-25c9-44ff-b637-2e5ceca36478

View differences:

vigigraph/public/js/toolbar.js
95 95
                this.graph_picker.setItem(null, this.graph_picker.options.label);
96 96
            }
97 97
            this.show_nagios.setEnabled(1);
98
            this.show_metrology.setEnabled(1);
98 99
            this.graph_picker.setEnabled(1);
99 100
        }.bind(this));
100 101

  
......
119 120
            }.bind(this)
120 121
        })
121 122

  
123
        this.show_metrology = new Jx.Button({
124
            label: _('Metrology page'),
125
            tooltip: _('Display a page with all the graphs for the selected host'),
126
            image: app_path + 'images/preferences-system-windows.png',
127
            toggle: false,
128
            enabled: false,
129
            onClick: function () {
130
                var uri = new URI(app_path + 'rpc/fullHostPage');
131
                uri.setData({
132
                    host: this.host_picker.getLabel()
133
                });
134
                window.open(uri.toString());
135
            }.bind(this)
136
        })
137

  
122 138
        this.graph_label = new Jx.Toolbar.Item(this.createLabel(_('Graph:')));
123 139

  
124 140
        this.graph_picker = new Jx.Button.SelectorFlyout({
......
158 174
        // Remplissage de la barre d'outils
159 175
        this.jxtoolbar.add(this.global_refresh);
160 176
        this.jxtoolbar.add(this.show_nagios);
177
        this.jxtoolbar.add(this.show_metrology);
161 178
        this.jxtoolbar.add(new Jx.Toolbar.Separator());
162 179
        this.jxtoolbar.add(this.host_label); // à supprimer ?
163 180
        this.jxtoolbar.add(this.host_picker);

Also available in: Unified diff