From e785ed2b7ee4bc2d50fb1a25abec755222c98fac Mon Sep 17 00:00:00 2001
From: AkiraFukushima
Date: Tue, 22 Mar 2022 21:27:45 +0900
Subject: [PATCH] refs #2606 Use vue-fontawesome in Modals/AddListMember
---
.../TimelineSpace/Modals/AddListMember.vue | 31 ++++++++-----------
src/renderer/main.ts | 6 ++--
2 files changed, 17 insertions(+), 20 deletions(-)
diff --git a/src/renderer/components/TimelineSpace/Modals/AddListMember.vue b/src/renderer/components/TimelineSpace/Modals/AddListMember.vue
index 7b7dcb62..11284836 100644
--- a/src/renderer/components/TimelineSpace/Modals/AddListMember.vue
+++ b/src/renderer/components/TimelineSpace/Modals/AddListMember.vue
@@ -1,14 +1,10 @@
-
+
-
+
-
+
@@ -21,13 +17,11 @@
{{ username(user) }}
-
- @{{ user.acct }}
-
+
@{{ user.acct }}
-
+
@@ -42,7 +36,7 @@ import { mapState } from 'vuex'
export default {
name: 'add-list-member',
- data () {
+ data() {
return {
name: ''
}
@@ -54,27 +48,28 @@ export default {
listId: state => state.TimelineSpace.Modals.AddListMember.targetListId
}),
addListMemberModal: {
- get () {
+ get() {
return this.$store.state.TimelineSpace.Modals.AddListMember.modalOpen
},
- set (value) {
+ set(value) {
this.$store.dispatch('TimelineSpace/Modals/AddListMember/changeModal', value)
}
}
},
methods: {
- username (account) {
+ username(account) {
if (account.display_name !== '') {
return account.display_name
} else {
return account.username
}
},
- search () {
+ search() {
this.$store.dispatch('TimelineSpace/Modals/AddListMember/search', this.name)
},
- add (user) {
- this.$store.dispatch('TimelineSpace/Modals/AddListMember/add', user)
+ add(user) {
+ this.$store
+ .dispatch('TimelineSpace/Modals/AddListMember/add', user)
.then(() => {
this.addListMemberModal = false
this.$store.dispatch('TimelineSpace/Contents/Lists/Edit/fetchMembers', this.listId)
diff --git a/src/renderer/main.ts b/src/renderer/main.ts
index 5ad9f4d8..aeea1f61 100644
--- a/src/renderer/main.ts
+++ b/src/renderer/main.ts
@@ -23,7 +23,8 @@ import {
faUnlock,
faLock,
faEyeSlash,
- faEye
+ faEye,
+ faPlus
} from '@fortawesome/free-solid-svg-icons'
import { FontAwesomeIcon } from '@fortawesome/vue-fontawesome'
import 'vue-awesome/icons'
@@ -64,7 +65,8 @@ library.add(
faUnlock,
faLock,
faEyeSlash,
- faEye
+ faEye,
+ faPlus
)
Vue.use(ElementUI, { locale })