Skip to content

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
fr0tt committed Oct 9, 2022
1 parent 37673f9 commit a9808e5
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 10 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"description": "App for bookmarks and notes.",
"keywords": ["laravel", "lumen", "bookmark", "notes"],
"license": "MIT",
"version": "2.2.9-p2",
"version": "2.3.0",
"type": "project",
"require": {
"php": "^7.2.5",
Expand Down
2 changes: 1 addition & 1 deletion public/js/app.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion public/service-worker.js

Large diffs are not rendered by default.

2 changes: 0 additions & 2 deletions resources/js/components/Sidebar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -147,9 +147,7 @@ export default {
-webkit-transition: width cubic-bezier(0.4, 0, 0.2, 1) 0.35s, opacity 0.5s;
-moz-transition: width cubic-bezier(0.4, 0, 0.2, 1) 0.35s, opacity 0.5s;
}
.sidebar-slide-leave-active {
// transition: width, opacity 0.8s;
transition: width cubic-bezier(0.4, 0, 0.2, 1) 0.35s;
-webkit-transition: width cubic-bezier(0.4, 0, 0.2, 1) 0.35s;
-moz-transition: width cubic-bezier(0.4, 0, 0.2, 1) 0.35s;
Expand Down
11 changes: 6 additions & 5 deletions resources/js/components/pages/Post.vue
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ export default {
title: this.title,
content: content,
collection_id: this.collection.id,
is_uncategorized: this.collection.id > 0 ? false : true,
is_uncategorized: this.collection.id <= 0,
tags: tags,
})
.then((response) => {
Expand All @@ -237,16 +237,17 @@ export default {
description: 'Post could not be created.',
})
})
this.$router.push({ path: '/c/' + this.collectionId })
this.$router.push({ path: '/c/' + this.collection.id })
} else {
const originCollectionId = this.post.collection_id
this.post.title = this.title
this.post.content = content
this.post.collection_id = this.collection.id
this.post.tags = tags
this.$store.dispatch('post/updatePost', { post: this.post })
const route = originCollectionId === null ? '/' : '/c/' + originCollectionId
this.$router.push({ path: route })
const originCollectionId = this.post.collection_id
this.$router.push({
path: originCollectionId === null ? '/' : '/c/' + originCollectionId,
})
}
},
keySave(event) {
Expand Down

0 comments on commit a9808e5

Please sign in to comment.