Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
AlekSIS-App-Maka
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
AlekSIS®
Onboarding
AlekSIS-App-Maka
Commits
ea964229
Commit
ea964229
authored
5 months ago
by
Julian
Browse files
Options
Downloads
Patches
Plain Diff
Redesign shared secret wrapper
parent
83e79352
No related branches found
Branches containing commit
No related tags found
1 merge request
!2
Frontend
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
aleksis/apps/maka/frontend/components/shared_secret/SharedSecretWrapper.vue
+44
-24
44 additions, 24 deletions
...frontend/components/shared_secret/SharedSecretWrapper.vue
with
44 additions
and
24 deletions
aleksis/apps/maka/frontend/components/shared_secret/SharedSecretWrapper.vue
+
44
−
24
View file @
ea964229
<
template
>
<
div
>
<
v-card
:flat=
"sharedSecretStatus || $apollo.queries.sharedSecretStatus.loading"
style=
"width: max-content"
class=
"mx-auto"
>
<slot
v-if=
"sharedSecretStatus && !initial"
/>
<div
class=
"d-flex justify-center align-center flex-column text-center"
v-else-if=
"$apollo.queries.sharedSecretStatus.loading"
>
<h1
class=
"text-h5"
>
{{
$t
(
"
maka.shared_secret.checking
"
)
}}
</h1>
<v-progress-circular
indeterminate
color=
"primary"
></v-progress-circular>
</div>
<div
class=
"d-flex justify-center align-center flex-column text-center"
v-else
>
<h1
class=
"text-h5"
>
{{
$t
(
"
maka.shared_secret.enter
"
)
}}
</h1>
<v-text-field
v-model=
"sharedSecret"
:loading=
"loading"
type=
"password"
:error-messages=
"errorMessages"
>
<template
#append
>
<v-btn
:disabled=
"loading"
icon
@
click=
"submitSharedSecret"
<template
v-else-if=
"$apollo.queries.sharedSecretStatus.loading"
>
<v-card-title>
{{
$t
(
"
maka.shared_secret.checking
"
)
}}
</v-card-title>
<v-card-text
class=
"d-flex align-center justify-center"
>
<v-progress-circular
indeterminate
color=
"primary"
/>
</v-card-text>
</
template
>
<
template
v-else
>
<v-card-title>
<v-avatar>
<v-icon
color=
"warning"
>
$warning
</v-icon>
</v-avatar>
{{
$t
(
"
maka.shared_secret.enter
"
)
}}
</v-card-title>
<v-card-text>
<form
@
submit.prevent=
"submitSharedSecret"
>
<v-text-field
v-model=
"sharedSecret"
:loading=
"loading"
type=
"password"
:error-messages=
"errorMessages"
outlined
:label=
"$t('maka.shared_secret.title')"
>
<v-icon
color=
"primary"
>
mdi-send-outline
</v-icon>
</v-btn>
</
template
>
</v-text-field>
</div>
</div>
<template
#append
>
<v-btn
type=
"submit"
:disabled=
"loading"
icon
small
right
>
<v-icon
color=
"primary"
>
$send
</v-icon>
</v-btn>
</
template
>
</v-text-field>
</form>
</v-card-text>
</template>
</v-card>
</template>
<
script
>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment