Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
phsl
/
new-api
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
d04f4860
authored
May 26, 2025
by
IcedTangerine
Committed by
GitHub
May 26, 2025
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1099 from feitianbubu/fixTagModeStatusSave
fix: keep BatchDelete and TagMode enabled status
parents
268be18b
05077594
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletions
+8
-1
web/src/components/ChannelsTable.js
+8
-1
No files found.
web/src/components/ChannelsTable.js
View file @
d04f4860
...
...
@@ -888,9 +888,13 @@ const ChannelsTable = () => {
const
localIdSort
=
localStorage
.
getItem
(
'id-sort'
)
===
'true'
;
const
localPageSize
=
parseInt
(
localStorage
.
getItem
(
'page-size'
))
||
ITEMS_PER_PAGE
;
const
localEnableTagMode
=
localStorage
.
getItem
(
'enable-tag-mode'
)
===
'true'
;
const
localEnableBatchDelete
=
localStorage
.
getItem
(
'enable-batch-delete'
)
===
'true'
;
setIdSort
(
localIdSort
);
setPageSize
(
localPageSize
);
loadChannels
(
0
,
localPageSize
,
localIdSort
,
enableTagMode
)
setEnableTagMode
(
localEnableTagMode
);
setEnableBatchDelete
(
localEnableBatchDelete
);
loadChannels
(
0
,
localPageSize
,
localIdSort
,
localEnableTagMode
)
.
then
()
.
catch
((
reason
)
=>
{
showError
(
reason
);
...
...
@@ -1486,10 +1490,12 @@ const ChannelsTable = () => {
{
t
(
'开启批量操作'
)}
<
/Typography.Text
>
<
Switch
checked
=
{
enableBatchDelete
}
label
=
{
t
(
'开启批量操作'
)}
uncheckedText
=
{
t
(
'关'
)}
aria
-
label
=
{
t
(
'是否开启批量操作'
)}
onChange
=
{(
v
)
=>
{
localStorage
.
setItem
(
'enable-batch-delete'
,
v
+
''
);
setEnableBatchDelete
(
v
);
}}
/
>
...
...
@@ -1553,6 +1559,7 @@ const ChannelsTable = () => {
uncheckedText
=
{
t
(
'关'
)}
aria
-
label
=
{
t
(
'是否启用标签聚合'
)}
onChange
=
{(
v
)
=>
{
localStorage
.
setItem
(
'enable-tag-mode'
,
v
+
''
);
setEnableTagMode
(
v
);
loadChannels
(
0
,
pageSize
,
idSort
,
v
);
}}
...
...
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