Completed
Push — master ( 1315ad...572de6 )
by Andreas
13s queued 11s
created

script/plugins/Menu/MenuItems/RedoMenuItemDispatcher.js   A

Complexity

Total Complexity 2
Complexity/F 1

Size

Lines of Code 19
Function Count 2

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 12
dl 0
loc 19
rs 10
c 0
b 0
f 0
wmc 2
mnd 0
bc 0
fnc 2
bpm 0
cpm 1
noi 1

2 Functions

Rating   Name   Duplication   Size   Complexity  
A RedoMenuItemDispatcher.getMenuItem 0 7 1
A RedoMenuItemDispatcher.isAvailable 0 3 1
1
import { redo } from 'prosemirror-history';
2
import AbstractMenuItemDispatcher from './AbstractMenuItemDispatcher';
3
import { svgIcon } from '../MDI';
4
import MenuItem from '../MenuItem';
5
6
export default class RedoMenuItemDispatcher extends AbstractMenuItemDispatcher {
7
    // history should be available regardless of current schema
8
    static isAvailable() {
9
        return true;
10
    }
11
12
    static getMenuItem() {
13
        return new MenuItem({
14
            command: redo,
15
            icon: svgIcon('redo'),
16
            label: LANG.plugins.prosemirror['label:redo'],
0 ignored issues
show
Bug introduced by
The variable LANG seems to be never declared. If this is a global, consider adding a /** global: LANG */ comment.

This checks looks for references to variables that have not been declared. This is most likey a typographical error or a variable has been renamed.

To learn more about declaring variables in Javascript, see the MDN.

Loading history...
17
        });
18
    }
19
}
20