bfg-common 1.4.250 → 1.4.252
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -139,6 +139,13 @@ const timeIntervalErrorText = computed<string>(() => {
|
|
|
139
139
|
const schedulerAtOnceErrorText = computed<string>(() => {
|
|
140
140
|
return !model.value.frg_on_time ? localization.value.common.fieldRequired : ''
|
|
141
141
|
})
|
|
142
|
+
watch(
|
|
143
|
+
schedulerAtOnceErrorText,
|
|
144
|
+
(newValue: string) => {
|
|
145
|
+
model.value.isValid = !!newValue
|
|
146
|
+
},
|
|
147
|
+
{ immediate: true }
|
|
148
|
+
)
|
|
142
149
|
|
|
143
150
|
// const calendarDefaultDate = ref<number>(new Date().getTime())
|
|
144
151
|
// const currentDateLocal = ref<string>('')
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { UI_I_ScheduleNewTasksForm } from '~/components/common/pages/scheduledTasks/modals/lib/models/interfaces'
|
|
2
2
|
|
|
3
3
|
export const buttonDisabled = (form: UI_I_ScheduleNewTasksForm): boolean => {
|
|
4
|
-
const { task_name,
|
|
4
|
+
const { task_name, isValid } = form
|
|
5
5
|
|
|
6
|
-
return !task_name ||
|
|
6
|
+
return !task_name || isValid
|
|
7
7
|
}
|