create folder emoji picker refactoring

This commit is contained in:
Čarodej
2022-01-19 15:45:59 +01:00
parent 24edb85b24
commit 34fcbdc55c
5 changed files with 63 additions and 1438 deletions

View File

@@ -99,7 +99,7 @@ const actions = {
.post(route, {
parent_id: parent_id,
name: folder.name,
icon: folder.icon
emoji: folder.emoji
})
.then(response => {
commit('ADD_NEW_FOLDER', response.data)
@@ -108,7 +108,9 @@ const actions = {
// Set focus on new folder name
setTimeout(() => {
events.$emit('newFolder:focus', response.data.data.id)
if (! Vue.prototype.$isMobile()) {
events.$emit('newFolder:focus', response.data.data.id)
}
}, 10)
if (Vue.prototype.$isThisRoute(router.currentRoute, ['Public']))