Skip to content

Commit

Permalink
[Accounts] Use KDS Buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexVelezLl committed Dec 19, 2022
1 parent 2ac10c1 commit d7e44a5
Show file tree
Hide file tree
Showing 11 changed files with 87 additions and 44 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<slot></slot>
<p class="mt-4">
<slot name="back">
<ActionLink :to="{ name: 'Main' }" :text="$tr('backToLogin')" />
<KRouterLink :to="{ name: 'Main' }" :text="$tr('backToLogin')" />
</slot>
</p>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -164,9 +164,12 @@
<p class="mb-4">
{{ $tr('contactMessage') }}
</p>
<VBtn color="primary" large :disabled="offline" type="submit">
{{ $tr('finishButton') }}
</VBtn>
<KButton
primary
:disabled="offline"
:text="$tr('finishButton')"
type="submit"
/>
</VForm>

</VLayout>
Expand Down
24 changes: 18 additions & 6 deletions contentcuration/contentcuration/frontend/accounts/pages/Main.vue
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,20 @@
<p>
<ActionLink :to="{ name: 'ForgotPassword' }" :text="$tr('forgotPasswordLink')" />
</p>
<VBtn block color="primary" large type="submit" :disabled="offline || busy">
{{ $tr('signInButton') }}
</VBtn>
<VBtn block flat color="primary" class="mt-2" :to="{ name: 'Create' }">
{{ $tr('createAccountButton') }}
</VBtn>
<KButton
primary
class="w-100"
:disabled="offline || busy"
:text="$tr('signInButton')"
type="submit"
/>
<KRouterLink
primary
class="w-100 mt-2"
:text="$tr('createAccountButton')"
:to="{ name: 'Create' }"
appearance="flat-button"
/>
</VForm>
<VDivider />
<p class="mt-4 text-xs-center">
Expand Down Expand Up @@ -197,4 +205,8 @@
left: 1em;
}
.w-100 {
width: 100%;
}
</style>
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,7 @@

<MessageLayout
:header="$tr('accountDeletedTitle')"
>
<template #back>
<VBtn color="primary" :to="{ name: 'Main' }" large>
{{ $tr('continueToSignIn') }}
</VBtn>
</template>
</MessageLayout>
/>

</template>

Expand All @@ -24,7 +18,6 @@
},
$trs: {
accountDeletedTitle: 'Account successfully deleted',
continueToSignIn: 'Continue to sign-in page',
},
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,7 @@

<MessageLayout
:header="$tr('accountCreatedTitle')"
>
<template #back>
<VBtn color="primary" :to="{ name: 'Main' }" large>
{{ $tr('continueToSignIn') }}
</VBtn>
</template>
</MessageLayout>
/>

</template>

Expand All @@ -24,7 +18,6 @@
},
$trs: {
accountCreatedTitle: 'Account successfully created',
continueToSignIn: 'Continue to sign-in',
},
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,12 @@
:header="$tr('title')"
:text="$tr('text')"
>
<VBtn color="primary" large :to="{ name: 'RequestNewActivationLink' }">
{{ $tr('requestNewLink') }}
</VBtn>
<KRouterLink
primary
:text="$tr('requestNewLink')"
:to="{ name: 'RequestNewActivationLink' }"
appearance="raised-button"
/>
</MessageLayout>

</template>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,12 @@
:header="$tr('activationExpiredTitle')"
:text="$tr('activationExpiredText')"
>
<VBtn color="primary" large :to="{ name: 'RequestNewActivationLink' }" class="mb-4">
{{ $tr('requestNewLink') }}
</VBtn>
<KRouterLink
primary
:text="$tr('requestNewLink')"
:to="{ name: 'RequestNewActivationLink' }"
appearance="raised-button"
/>
</MessageLayout>

</template>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,12 @@
>
<Banner :text="$tr('activationRequestFailed')" :value="error" error class="mb-4" />
<EmailField v-model="email" autofocus />
<VBtn color="primary" large type="submit" block>
{{ $tr('submitButton') }}
</VBtn>
<KButton
primary
class="w-100"
:text="$tr('submitButton')"
type="submit"
/>
</VForm>
</MessageLayout>

Expand Down Expand Up @@ -64,3 +67,11 @@
};
</script>

<style lang="less" scoped>
.w-100 {
width: 100%;
}
</style>
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,12 @@
<VForm ref="form" lazy-validation @submit.prevent="submit">
<Banner :text="$tr('forgotPasswordFailed')" :value="error" error class="mb-4" />
<EmailField v-model="email" autofocus />
<VBtn block color="primary" large type="submit">
{{ $tr('submitButton') }}
</VBtn>
<KButton
primary
class="w-100"
:text="$tr('submitButton')"
type="submit"
/>
</VForm>
</MessageLayout>

Expand Down Expand Up @@ -65,3 +68,11 @@
};
</script>

<style lang="less" scoped>
.w-100 {
width: 100%;
}
</style>
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,12 @@
:header="$tr('resetExpiredTitle')"
:text="$tr('resetExpiredText')"
>
<VBtn color="primary" large :to="{ name: 'ForgotPassword' }" class="mb-4">
{{ $tr('requestNewLink') }}
</VBtn>
<KRouterLink
primary
:text="$tr('requestNewLink')"
:to="{ name: 'ForgotPassword' }"
appearance="raised-button"
/>
</MessageLayout>

</template>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,12 @@
:label="$tr('passwordConfirmLabel')"
:additionalRules="passwordConfirmRules"
/>
<VBtn block color="primary" large type="submit">
{{ $tr('submitButton') }}
</VBtn>
<KButton
primary
class="w-100"
:text="$tr('submitButton')"
type="submit"
/>
</VForm>
</MessageLayout>

Expand Down Expand Up @@ -84,3 +87,11 @@
};
</script>

<style lang="less" scoped>
.w-100 {
width: 100%;
}
</style>

0 comments on commit d7e44a5

Please sign in to comment.