|
|
@ -3948,7 +3948,6 @@ var ProcessFile = /*#__PURE__*/function (_Vue) { |
|
|
|
}, { |
|
|
|
key: "createDiffPreview", |
|
|
|
value: function createDiffPreview() { |
|
|
|
// console.log('CREATING DIFF PREVIEW: ', this.processedFileContent);
|
|
|
|
this.processedFileContentPreview = this.processedFileContent; |
|
|
|
var indexes = []; |
|
|
|
|
|
|
@ -4002,11 +4001,35 @@ var ProcessFile = /*#__PURE__*/function (_Vue) { |
|
|
|
|
|
|
|
return downloadOdt; |
|
|
|
}() |
|
|
|
}, { |
|
|
|
key: "canRunSearchers", |
|
|
|
value: function canRunSearchers() { |
|
|
|
if (this.fileContent == '' || Object.keys(this.selectedSearchers).length === 0) { |
|
|
|
return false; |
|
|
|
} |
|
|
|
|
|
|
|
for (var _i = 0, _Object$keys = Object.keys(this.selectedSearchers); _i < _Object$keys.length; _i++) { |
|
|
|
var key = _Object$keys[_i]; |
|
|
|
var searcher = this.selectedSearchers[key]; |
|
|
|
|
|
|
|
if (!this.isValidParam(searcher.id, searcher.param)) { |
|
|
|
return false; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
return true; |
|
|
|
} |
|
|
|
/** |
|
|
|
* Check if a param is valid or not. |
|
|
|
* |
|
|
|
* @param {string} paramId |
|
|
|
* @param {string} paramType |
|
|
|
* @returns {boolean} |
|
|
|
*/ |
|
|
|
|
|
|
|
}, { |
|
|
|
key: "isValidParam", |
|
|
|
value: function isValidParam(paramId, paramType) { |
|
|
|
console.log('PARAM: ', paramId, this.searchersOptions[paramId]); |
|
|
|
|
|
|
|
if (paramType === 'required' && (this.searchersOptions[paramId] === '' || this.searchersOptions[paramId] === undefined)) { |
|
|
|
return false; |
|
|
|
} |
|
|
@ -29270,9 +29293,7 @@ var render = function() { |
|
|
|
attrs: { |
|
|
|
label: "Run filters", |
|
|
|
icon: "pi pi-play", |
|
|
|
disabled: |
|
|
|
_vm.fileContent == "" || |
|
|
|
Object.keys(_vm.selectedSearchers).length === 0 |
|
|
|
disabled: !_vm.canRunSearchers() |
|
|
|
}, |
|
|
|
on: { click: _vm.runSearchers } |
|
|
|
}) |
|
|
@ -29622,9 +29643,7 @@ var render = function() { |
|
|
|
attrs: { |
|
|
|
label: "Run filters", |
|
|
|
icon: "pi pi-play", |
|
|
|
disabled: |
|
|
|
_vm.fileContent == "" || |
|
|
|
Object.keys(_vm.selectedSearchers).length === 0 |
|
|
|
disabled: !_vm.canRunSearchers() |
|
|
|
}, |
|
|
|
on: { |
|
|
|
click: function($event) { |
|
|
|