Skip to content

Conversation

@hankis
Copy link
Owner

@hankis hankis commented Nov 11, 2020

No description provided.

</script>

<style>
@keyframes ldio-3igtohkgnvp-r {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

3igtohkgnvp - ?
You can clean up your code when copy, and use scoped styles to isolate these classes within current component

props: {
value: String,
},
model: {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not very convenient way when you work with simple inputs - you need to extract DOM node to emit new value

this.todo = this.selectedTodo;
},
methods: {
closeEditing() {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Redundant method. Just write @close=$emit('close')

<th scope="col">Title</th>
<th scope="col">Completed</th>
<th scope="col">
<button class="btn btn-info" @click="addNew">Add new +</button>

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Formatting!

v-if="selectedTodo"
v-model="selectedTodo"
@close="closeEditing"
:key="selectedTodo.id"/>

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What for did you add key here ?

},
addNew() {
this.todos.push({

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No backend communication in app

<meta name="viewport" content="width=device-width,initial-scale=1.0">
<link rel="icon" href="<%= BASE_URL %>favicon.ico">
<title><%= htmlWebpackPlugin.options.title %></title>
<link href="https://fonts.googleapis.com/css?family=Roboto:100,300,400,500,700,900" rel="stylesheet">

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

import in css modules better

@@ -0,0 +1,5 @@
export default {
getCard(state) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

getter name should be a noun

}
return state.todoList.filter((item) => item.title.includes(state.searchValue));
},
selectedTodo(state) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems like this should be stored in a component, not in a store

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants