Skip to content

Commit 201520a

Browse files
committed
Merge branch 'dev'
2 parents c2c6b4e + 01273a0 commit 201520a

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

pages/index.vue

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<SearchCourse
88
v-slot="{ searchCourse, searching }"
99
:values="values"
10-
:disabled="disabledSIASearch"
10+
:disabled="!SESSION.user || disabledSIASearch"
1111
>
1212
<XamuBaseBox
1313
class="x-box flx --flxColumn --flx-start-stretch --width-100 --p-20:md"
@@ -39,9 +39,10 @@
3939
</div>
4040
<XamuActionButton
4141
:size="eSizes.LG"
42-
:disabled="disabledSIASearch || searching"
42+
:disabled="!SESSION.user || disabledSIASearch || searching"
4343
type="submit"
4444
:tooltip="search ? 'Buscar curso' : 'Descubrir cursos disponibles'"
45+
hydrate-never
4546
round
4647
>
4748
<XamuIconFa v-if="search" name="magnifying-glass" :size="20" />
@@ -278,7 +279,7 @@
278279
* Disable SIA search
279280
*/
280281
const disabledSIASearch = computed(() => {
281-
return !SESSION.user || APP.SIAMaintenance || (!!search.value && search.value.length < 5);
282+
return APP.SIAMaintenance || (!!search.value && search.value.length < 5);
282283
});
283284
284285
const {

0 commit comments

Comments
 (0)