Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/spreed.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2022-08-10 13:05:59 +0300
committerJoas Schilling <coding@schilljs.com>2022-08-10 13:05:59 +0300
commit0619a543cce9a85d06c83f4283862439e236eb66 (patch)
tree6652997a4613076749923eae8b1211e9cc0a3d69 /src
parent5f3e5722dbf17983855e6f50dd048f0693a12952 (diff)
Move "Remove participant" button to Vue
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'src')
-rw-r--r--src/components/LeftSidebar/NewGroupConversation/SetContacts/ContactSelectionBubble/ContactSelectionBubble.vue29
1 files changed, 15 insertions, 14 deletions
diff --git a/src/components/LeftSidebar/NewGroupConversation/SetContacts/ContactSelectionBubble/ContactSelectionBubble.vue b/src/components/LeftSidebar/NewGroupConversation/SetContacts/ContactSelectionBubble/ContactSelectionBubble.vue
index 7fcb4308f..eacca0878 100644
--- a/src/components/LeftSidebar/NewGroupConversation/SetContacts/ContactSelectionBubble/ContactSelectionBubble.vue
+++ b/src/components/LeftSidebar/NewGroupConversation/SetContacts/ContactSelectionBubble/ContactSelectionBubble.vue
@@ -31,18 +31,27 @@
<span class="contact-selection-bubble__username">
{{ displayName }}
</span>
- <button class="icon-close contact-selection-bubble__remove"
- @click="removeParticipantFromSelection(participant)" />
+ <ButtonVue type="tertiary-no-background"
+ :aria-label="removeLabel"
+ @click="removeParticipantFromSelection(participant)">
+ <template #icon>
+ <Close size="16" />
+ </template>
+ </ButtonVue>
</div>
</template>
<script>
+import ButtonVue from '@nextcloud/vue/dist/Components/Button'
+import Close from 'vue-material-design-icons/Close.vue'
import AvatarWrapperSmall from '../../../../AvatarWrapper/AvatarWrapperSmall.vue'
export default {
name: 'ContactSelectionBubble',
components: {
AvatarWrapperSmall,
+ ButtonVue,
+ Close,
},
props: {
@@ -58,6 +67,10 @@ export default {
// But it causes weird scenarios in formal companies or when people have titles.
return this.participant.label
},
+
+ removeLabel() {
+ return t('spreed', 'Remove participant {name}', { name: this.displayName })
+ },
},
methods: {
@@ -90,18 +103,6 @@ $bubble-height: 24px;
overflow: hidden;
text-overflow: ellipsis;
}
- &__remove {
- margin: 0 0 0 4px;
- border: none;
- border-radius: $bubble-height;
- height: $bubble-height;
- width: $bubble-height;
- background-color: var(--color-primary-active);
- &:active,
- &:focus {
- background-color: transparent !important;
- }
- }
}
</style>