-
Notifications
You must be signed in to change notification settings - Fork 447
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #11377 from nextcloud/feat/noid/refactor-new-conve…
…rsation-dialog enh(NewConversationDialog): refactor and split component
- Loading branch information
Showing
15 changed files
with
402 additions
and
541 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
- | ||
- @author Marco Ambrosini <[email protected]> | ||
- | ||
- @license GNU AGPL version 3 or any later version | ||
- @license AGPL-3.0-or-later | ||
- | ||
- This program is free software: you can redistribute it and/or modify | ||
- it under the terms of the GNU Affero General Public License as | ||
|
@@ -33,7 +33,7 @@ | |
</span> | ||
<NcButton type="tertiary-no-background" | ||
:aria-label="removeLabel" | ||
@click="removeParticipantFromSelection(participant)"> | ||
@click="$emit('update', participant)"> | ||
<template #icon> | ||
<Close :size="16" /> | ||
</template> | ||
|
@@ -46,9 +46,9 @@ import Close from 'vue-material-design-icons/Close.vue' | |
|
||
import NcButton from '@nextcloud/vue/dist/Components/NcButton.js' | ||
|
||
import AvatarWrapper from '../../../../AvatarWrapper/AvatarWrapper.vue' | ||
import AvatarWrapper from './AvatarWrapper/AvatarWrapper.vue' | ||
|
||
import { AVATAR } from '../../../../../constants.js' | ||
import { AVATAR } from '../constants.js' | ||
|
||
export default { | ||
name: 'ContactSelectionBubble', | ||
|
@@ -66,6 +66,8 @@ export default { | |
}, | ||
}, | ||
|
||
emits: ['update'], | ||
|
||
setup() { | ||
return { AVATAR } | ||
}, | ||
|
@@ -81,12 +83,6 @@ export default { | |
return t('spreed', 'Remove participant {name}', { name: this.displayName }) | ||
}, | ||
}, | ||
|
||
methods: { | ||
removeParticipantFromSelection(participant) { | ||
this.$store.dispatch('updateSelectedParticipants', participant) | ||
}, | ||
}, | ||
} | ||
</script> | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.