webpack/assets/javascripts/compute_resource/libvirt.js
Function allocationSwitcher
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function allocationSwitcher(element, action) {
const previous = $(element)
.parent()
.find('.active');
Function imageSelected
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function imageSelected(item) {
const template = $(item).val();
if (template) {
const url = $(item).attr('data-url');
Function networkSelected
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function networkSelected(item) {
const selected = $(item).val();
const bridge = $(item)
.parentsUntil('.fields')
.parent()