Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
Frontend
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Package registry
Model registry
Operate
Terraform modules
Monitor
Service Desk
Analyze
Contributor analytics
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
HUB Terra
SMS
Frontend
Commits
23e0fcca
Unverified
Commit
23e0fcca
authored
4 years ago
by
Marc Hanisch
Browse files
Options
Downloads
Patches
Plain Diff
adds ProgressIndicator component
parent
3de84bfe
No related branches found
No related tags found
2 merge requests
!90
Draft: restructure frontend properties 2
,
!82
Restructure frontend
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
components/ProgressIndicator.vue
+50
-0
50 additions, 0 deletions
components/ProgressIndicator.vue
with
50 additions
and
0 deletions
components/ProgressIndicator.vue
0 → 100644
+
50
−
0
View file @
23e0fcca
<
template
>
<div>
<v-overlay
:value=
"isInProgress"
:opacity=
"dark ? 0.5 : 0.05"
>
<v-progress-circular
indeterminate
class=
"center-absolute"
/>
</v-overlay>
</div>
</
template
>
<
style
>
.center-absolute
{
position
:
fixed
;
top
:
50%
;
left
:
50%
;
margin-top
:
-16px
;
margin-left
:
-16px
;
}
</
style
>
<
script
lang=
"ts"
>
import
{
Component
,
Vue
,
Prop
}
from
'
nuxt-property-decorator
'
@
Component
export
default
class
ProgressIndicator
extends
Vue
{
@
Prop
({
default
:
false
,
required
:
false
,
type
:
Boolean
})
// @ts-ignore
readonly
value
!
:
boolean
@
Prop
({
default
:
false
,
required
:
false
,
type
:
Boolean
})
// @ts-ignore
readonly
dark
!
:
boolean
get
isInProgress
():
boolean
{
return
this
.
value
}
}
</
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