Skip to content

Commit

Permalink
Toolbars: remove extra console.log statements.
Browse files Browse the repository at this point in the history
  • Loading branch information
martinpovolny committed Sep 26, 2019
1 parent bfef3e8 commit b304247
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions app/javascript/components/miq-toolbar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ const getParams = (urlParms, sendChecked) => {
// Toolbar button onClick handler for all toolbar buttons.

const onClick = (button) => {
console.log('Toolbar onClick handler. Button: ', button);
let buttonUrl;

if (button.confirm && !window.confirm(button.confirm)) {
Expand All @@ -72,10 +71,8 @@ const onClick = (button) => {

// popup windows are only supported for urls starting with '/' (non-ajax)
if (button.popup) {
console.log('open URL: ', buttonUrl);
window.open(buttonUrl);
} else {
console.log('DoNav URL: ', buttonUrl);
DoNav(encodeURI(buttonUrl));
}
return;
Expand Down Expand Up @@ -124,12 +121,10 @@ const onClick = (button) => {
data: paramstring,
};

console.log('miqJqueryRequest URL: ', buttonUrl);
miqJqueryRequest(buttonUrl, options);
};

const onViewClick = (button) => {
console.log('Toolbar onViewClick handler. Button: ', button);
if (button.url && (button.url.indexOf('/') === 0)) {
const delimiter = (button.url === '/') ? '' : '/';
const tail = (ManageIQ.record.recordId) ? delimiter + ManageIQ.record.recordId : '';
Expand Down Expand Up @@ -223,8 +218,6 @@ const MiqToolbar = ({ toolbars }) => {
return null;
}

console.log('props: ', toolbars);

const { custom, name, props } = toolbars[0][0];
if (custom) {
switch (name) {
Expand Down

0 comments on commit b304247

Please sign in to comment.