Update minderUtils.js
This commit is contained in:
parent
6e23dd467b
commit
c766dd9349
|
@ -354,15 +354,15 @@ export function tagBatch(distinctTags) {
|
|||
});
|
||||
}
|
||||
|
||||
export function isModuleNode(node) {
|
||||
return isModuleNodeData(node.data);
|
||||
}
|
||||
|
||||
export function isModuleNodeData(data) {
|
||||
let resource = data ? data.resource : null;
|
||||
return data.type === 'node' || (resource && resource.indexOf(i18n.t('test_track.module.module')) > -1);
|
||||
}
|
||||
|
||||
export function isModuleNode(node) {
|
||||
return isModuleNodeData(node.data);
|
||||
}
|
||||
|
||||
export function tagEditCheck(resourceName) {
|
||||
let minder = window.minder;
|
||||
let selectNodes = minder.getSelectedNodes();
|
||||
|
|
Loading…
Reference in New Issue