Skip to content

Commit

Permalink
Fixed Issue krayin#1840
Browse files Browse the repository at this point in the history
  • Loading branch information
amit-webkul committed Dec 23, 2024
1 parent 1f90616 commit f060043
Showing 1 changed file with 3 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ class="icon-move cursor-grab rounded-md p-1 text-2xl transition-all hover:bg-gra
</i>
</div>
<!-- Crads input fiels -->
<!-- Cards input fields -->
<div>
<!-- Hidden Inputs -->
<!-- Code -->
Expand Down Expand Up @@ -195,7 +195,7 @@ class="icon-move cursor-grab rounded-md p-1 text-2xl transition-all hover:bg-gra
type="text"
::name="'stages[' + element.id + '][name]'"
v-model="element['name']"
::rules="getValidation"
::rules="{ required: true, unique_name: stages, min: 0, max: 100 }"
:label="trans('admin::app.settings.pipelines.edit.name')"
::readonly="! canDrag(element)"
/>
Expand All @@ -207,7 +207,7 @@ class="icon-move cursor-grab rounded-md p-1 text-2xl transition-all hover:bg-gra
{!! view_render_event('admin.settings.pipelines.edit.form.stages.probability.before', ['pipeline' => $pipeline]) !!}
<!-- Probabilty -->
<!-- Probability -->
<x-admin::form.control-group>
<x-admin::form.control-group.label class="required">
@lang('admin::app.settings.pipelines.edit.probability')
Expand Down Expand Up @@ -290,15 +290,6 @@ class="secondary-button"
stageCount: 1,
};
},
computed: {
getValidation() {
return {
required: true,
unique_name: this.stages,
};
},
},
created() {
this.extendValidations();
Expand Down

0 comments on commit f060043

Please sign in to comment.