Skip to content

Commit

Permalink
fix: adjust unsupported v-model usage
Browse files Browse the repository at this point in the history
Signed-off-by: Maksim Sukharev <antreesy.web@gmail.com>
  • Loading branch information
Antreesy committed Nov 11, 2024
1 parent cb0f19f commit 81094e1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions src/components/LeftSidebar/LeftSidebar.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -642,7 +642,7 @@ describe('LeftSidebar.vue', () => {
expect(ncModalComponent.exists()).toBeTruthy()

const input = ncModalComponent.findComponent({ name: 'NcTextField', ref: 'conversationName' })
expect(input.props('value')).toBe(groupsResults[1].label)
expect(input.props('modelValue')).toBe(groupsResults[1].label)

// nothing created yet
expect(createOneToOneConversationAction).not.toHaveBeenCalled()
Expand All @@ -664,7 +664,7 @@ describe('LeftSidebar.vue', () => {
const ncModalComponent = wrapper.findComponent({ name: 'NcModal' })
expect(ncModalComponent.exists()).toBeTruthy()
const input = ncModalComponent.findComponent({ name: 'NcTextField', ref: 'conversationName' })
expect(input.props('value')).toBe(circlesResults[1].label)
expect(input.props('modelValue')).toBe(circlesResults[1].label)

// nothing created yet
expect(createOneToOneConversationAction).not.toHaveBeenCalled()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,17 +115,17 @@ export default {
get() {
return this.newConversation.displayName
},
set(event) {
this.updateNewConversation({ displayName: event.target.value })
set(displayName) {
this.updateNewConversation({ displayName })
},
},

conversationDescription: {
get() {
return this.newConversation.description
},
set(event) {
this.updateNewConversation({ description: event.target.value })
set(description) {
this.updateNewConversation({ description })
},
},

Expand Down Expand Up @@ -172,8 +172,8 @@ export default {
get() {
return this.password
},
set(event) {
this.$emit('update:password', event.target.value)
set(value) {
this.$emit('update:password', value)
},
},

Expand Down

0 comments on commit 81094e1

Please sign in to comment.