Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
pleroma-fe
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Ilja
pleroma-fe
Commits
1d77063a
Commit
1d77063a
authored
3 years ago
by
HJ
Browse files
Options
Downloads
Patches
Plain Diff
fix shadow control in theme tab
parent
ccd73783
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/components/shadow_control/shadow_control.js
+6
-5
6 additions, 5 deletions
src/components/shadow_control/shadow_control.js
with
6 additions
and
5 deletions
src/components/shadow_control/shadow_control.js
+
6
−
5
View file @
1d77063a
...
...
@@ -30,18 +30,19 @@ const toModel = (object = {}) => ({
})
export
default
{
// 'Value' and 'Fallback' can be undefined, but if they are
// '
model
Value' and 'Fallback' can be undefined, but if they are
// initially vue won't detect it when they become something else
// therefore i'm using "ready" which should be passed as true when
// data becomes available
props
:
[
'
v
alue
'
,
'
fallback
'
,
'
ready
'
'
modelV
alue
'
,
'
fallback
'
,
'
ready
'
],
emits
:
[
'
update:modelValue
'
],
data
()
{
return
{
selectedId
:
0
,
// TODO there are some bugs regarding display of array (it's not getting updated when deleting for some reason)
cValue
:
(
this
.
v
alue
||
this
.
fallback
||
[]).
map
(
toModel
)
cValue
:
(
this
.
modelV
alue
||
this
.
fallback
||
[]).
map
(
toModel
)
}
},
components
:
{
...
...
@@ -70,7 +71,7 @@ export default {
}
},
beforeUpdate
()
{
this
.
cValue
=
this
.
v
alue
||
this
.
fallback
this
.
cValue
=
this
.
modelV
alue
||
this
.
fallback
},
computed
:
{
anyShadows
()
{
...
...
@@ -105,7 +106,7 @@ export default {
!
this
.
usingFallback
},
usingFallback
()
{
return
typeof
this
.
v
alue
===
'
undefined
'
return
typeof
this
.
modelV
alue
===
'
undefined
'
},
rgb
()
{
return
hex2rgb
(
this
.
selected
.
color
)
...
...
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