/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
// Show a remove button for custom devices. const removeDeviceButton = dom.button({
id: "device-edit-remove",
className: "device-remove-button devtools-button",
onClick: () => {
onRemoveCustomDevice(device); this.props.onDeviceFormHide();
},
});
// Show an edit button for custom devices const editButton = dom.button({
id: "device-edit-button",
className: "devtools-button",
onClick: () => { this.props.onDeviceFormShow("edit", device);
},
});
return Device(
{
device,
key: device.name,
type,
onDeviceCheckboxChange,
}, // Don't show the remove/edit buttons for a custom device if the form is open.
!isDeviceFormShown ? editButton : null,
!isDeviceFormShown ? removeDeviceButton : null
);
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung ist noch experimentell.