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 2ca7157 commit 9920f1a
Show file tree
Hide file tree
Showing 11 changed files with 88 additions and 54 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,10 @@
<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
32 changes: 16 additions & 16 deletions contentcuration/contentcuration/frontend/accounts/pages/Main.vue
Original file line number Diff line number Diff line change
Expand Up @@ -58,24 +58,20 @@
:text="$tr('forgotPasswordLink')"
/>
</p>
<VBtn
block
color="primary"
large
type="submit"
<KButton
primary
class="w-100"
:text="$tr('signInButton')"
:disabled="offline || busy"
>
{{ $tr('signInButton') }}
</VBtn>
<VBtn
block
flat
color="primary"
class="mt-2"
type="submit"
/>
<KRouterLink
primary
class="mt-2 w-100"
:text="$tr('createAccountButton')"
:to="{ name: 'Create' }"
>
{{ $tr('createAccountButton') }}
</VBtn>
appearance="flat-button"
/>
</VForm>
<VDivider />
<p class="mt-4 text-xs-center">
Expand Down Expand Up @@ -226,4 +222,8 @@
content: '';
}
.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 9920f1a

Please sign in to comment.