Skip to content

Commit

Permalink
minor edits
Browse files Browse the repository at this point in the history
  • Loading branch information
Krrupa committed Dec 18, 2023
1 parent 20385bd commit b59b6cc
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 9 deletions.
6 changes: 3 additions & 3 deletions src/components/Entry.vue
Original file line number Diff line number Diff line change
Expand Up @@ -64,12 +64,12 @@
<!-- invalid input and login message -->
<span
v-if="isInvalidInputMessageShown"
class="mx-auto text-red-700 text-base mb-1"
class="mx-auto text-red text-base mb-1"
>{{ invalidInputMessage }}</span
>
<span
v-if="isInvalidLoginMessageShown && !isExtraInputValidationRequired"
class="mx-auto text-red-700 text-base mb-1"
class="mx-auto text-red text-base mb-1"
>{{ invalidLoginMessage }}</span
>
<!-- button to add another input -->
Expand Down Expand Up @@ -152,7 +152,7 @@
<span
v-html="invalidLoginMessage"
v-if="isInvalidLoginMessageShown && isExtraInputValidationRequired"
class="mx-auto text-red-700 text-base mb-1 text-center text-xs md:text-sm"
class="mx-auto text-red text-base mb-1 text-center text-xs md:text-sm"
></span>
<!-- submit button -->
<button
Expand Down
18 changes: 12 additions & 6 deletions src/pages/Home.vue
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,7 @@
!isPurposeRegistration &&
!isLandingPage &&
isAuthTypeID &&
doesGroupExist &&
!isTypeSignIn &&
!isTypeSignUp
doesGroupExist
"
>
<Entry
Expand Down Expand Up @@ -154,6 +152,12 @@ export default {
type: String,
},
/** Which module is being used */
sub_type: {
default: "",
type: String,
},
/** What are the sign-in options the user must be displayed with. */
auth_type: {
default: "",
Expand Down Expand Up @@ -347,7 +351,8 @@ export default {
isTypeSignIn() {
return (
(this.sessionData && this.sessionData.type == "sign-in") ||
this.type == "sign-in"
this.type == "sign-in" ||
this.purpose == "attendance"
);
},
Expand Down Expand Up @@ -438,9 +443,10 @@ export default {
this.purpose == "" &&
this.purposeParams == "" &&
this.redirectId == "" &&
this.platform_id == "" &&
this.redirectTo == "" &&
this.platform == "" &&
(this.platform == "" || this.platform == null) &&
(this.platform_id == "" || this.platform_id == null) &&
this.sub_type == "" &&
this.sessionId == null
);
},
Expand Down

0 comments on commit b59b6cc

Please sign in to comment.