fix some prop errors in addautomatedtask and fix display of assigned checks and tasks in policy check/task tabs

This commit is contained in:
sadnub
2021-10-22 17:21:16 -04:00
parent e87a42ebb6
commit dfbd641df8
4 changed files with 10 additions and 10 deletions

View File

@@ -252,6 +252,7 @@ export default {
const loading = ref(false);
async function submit() {
console.log(task.value);
if (!step1Done.value || !step2Done.value) {
notifyError("Some steps are incomplete");
return;
@@ -289,7 +290,7 @@ export default {
const step1Done = computed(() => {
return (
(!!script.value && !!task.value.name && !!defaultTimeout.value && !collector.value) ||
(!!script.value && !!task.value.name && !!defaultTimeout.value && collector.value && task.value.custom_field)
(!!script.value && !!task.value.name && !!defaultTimeout.value && collector.value && !!task.value.custom_field)
);
});