Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
A
admin-fe
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
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
Pleroma
admin-fe
Merge requests
!137
Implement emoji packs pagination
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Implement emoji packs pagination
feature/emoji-packs-pagination
into
develop
Overview
0
Commits
16
Pipelines
5
Changes
3
Merged
Angelina Filippova
requested to merge
feature/emoji-packs-pagination
into
develop
4 years ago
Overview
0
Commits
16
Pipelines
5
Changes
3
Expand
Closes
#118 (closed)
Edited
4 years ago
by
Angelina Filippova
0
0
Merge request reports
Viewing commit
84c6319a
Prev
Next
Show latest version
3 files
+
11
−
12
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
3
Search (e.g. *.vue) (Ctrl+P)
84c6319a
Update function that saves active tabs in state
· 84c6319a
Angelina Filippova
authored
4 years ago
src/store/modules/emojiPacks.js
+
5
−
5
Options
@@ -19,7 +19,7 @@ import Vue from 'vue'
const
emojiPacks
=
{
state
:
{
active
CollapseItems
:
[]
,
active
Tab
:
''
,
currentFilesPage
:
1
,
currentPage
:
1
,
filesPageSize
:
30
,
@@ -31,8 +31,8 @@ const emojiPacks = {
remotePacks
:
{}
},
mutations
:
{
SET_ACTIVE_
COLLAPSE_ITEMS
:
(
state
,
items
)
=>
{
state
.
active
CollapseItems
=
items
SET_ACTIVE_
TAB
:
(
state
,
tab
)
=>
{
state
.
active
Tab
=
tab
},
SET_FILES_COUNT
:
(
state
,
count
)
=>
{
state
.
localPackFilesCount
=
count
@@ -177,8 +177,8 @@ const emojiPacks = {
commit
(
'
UPDATE_LOCAL_PACK_PACK
'
,
{
name
:
packName
,
pack
:
result
.
data
})
}
},
SetActive
CollapseItems
({
commit
},
active
Items
)
{
commit
(
'
SET_ACTIVE_
COLLAPSE_ITEMS
'
,
active
Items
)
SetActive
Tab
({
commit
},
active
Tab
)
{
commit
(
'
SET_ACTIVE_
TAB
'
,
active
Tab
)
},
async
SetRemoteEmojiPacks
({
commit
,
getters
},
{
remoteInstance
})
{
const
{
data
}
=
await
listRemotePacks
(
getters
.
authHost
,
getters
.
token
,
remoteInstance
)
Loading