Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wiki-js
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
wiki-js
Commits
dab5dcfb
Commit
dab5dcfb
authored
Sep 07, 2020
by
NGPixel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: auth strategy order not saved
parent
794ecc6e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
15 deletions
+4
-15
admin-auth.vue
client/components/admin/admin-auth.vue
+4
-15
No files found.
client/components/admin/admin-auth.vue
View file @
dab5dcfb
...
...
@@ -25,7 +25,6 @@
v-model='activeStrategies'
handle='.is-handle'
direction='vertical'
:store='order'
)
transition-group
v-list-item(
...
...
@@ -248,16 +247,6 @@ export default {
}
}
},
computed
:
{
order
:
{
get
()
{
return
this
.
strategies
},
set
(
val
)
{
}
}
},
watch
:
{
selectedStrategy
(
newValue
,
oldValue
)
{
this
.
strategy
=
_
.
find
(
this
.
activeStrategies
,
[
'key'
,
newValue
])
||
{}
...
...
@@ -321,11 +310,11 @@ export default {
}
`
,
variables
:
{
strategies
:
this
.
activeStrategies
.
map
(
str
=>
({
strategies
:
this
.
activeStrategies
.
map
(
(
str
,
idx
)
=>
({
key
:
str
.
key
,
strategyKey
:
str
.
strategy
.
key
,
displayName
:
str
.
displayName
,
order
:
str
.
order
,
order
:
idx
,
isEnabled
:
str
.
isEnabled
,
config
:
str
.
config
.
map
(
cfg
=>
({...
cfg
,
value
:
JSON
.
stringify
({
v
:
cfg
.
value
.
value
})})),
selfRegistration
:
str
.
selfRegistration
,
...
...
@@ -412,13 +401,13 @@ export default {
}
`
,
fetchPolicy
:
'network-only'
,
update
:
(
data
)
=>
_
.
get
(
data
,
'authentication.activeStrategies'
,
[]).
map
(
str
=>
({
update
:
(
data
)
=>
_
.
sortBy
(
_
.
get
(
data
,
'authentication.activeStrategies'
,
[]).
map
(
str
=>
({
...
str
,
config
:
_
.
sortBy
(
str
.
config
.
map
(
cfg
=>
({
...
cfg
,
value
:
JSON
.
parse
(
cfg
.
value
)
})),
[
t
=>
t
.
value
.
order
])
})),
})),
[
'order'
]),
watchLoading
(
isLoading
)
{
this
.
$store
.
commit
(
`loading
${
isLoading
?
'Start'
:
'Stop'
}
`
,
'admin-auth-activestrategies-refresh'
)
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment