resources/assets/js/mixins/admin/admin_any_index.js   A
last analyzed

Complexity

Total Complexity 2
Complexity/F 2

Size

Lines of Code 9
Function Count 1

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 2
c 1
b 0
f 0
dl 0
loc 9
rs 10
cc 0
nc 1
mnd 1
bc 2
fnc 1
bpm 2
cpm 2
noi 0

1 Function

Rating   Name   Duplication   Size   Complexity  
A ???.methods.confirmDeletingItem 0 5 2
1
export default {
2
    methods: {
3
        confirmDeletingItem: function (id, row_id) {
4
            if (confirm('Are you sure?')) {
5
                document.getElementById(row_id + id).submit();
6
            }
7
        }
8
    }
9
}