File tree 7 files changed +43
-13
lines changed
7 files changed +43
-13
lines changed Original file line number Diff line number Diff line change @@ -1161,11 +1161,13 @@ desktop/views/components/note-detail.vue:
1161
1161
location : " Location"
1162
1162
reply : " Reply"
1163
1163
renote : " Renote"
1164
+ quote : " Quote"
1164
1165
add-reaction : " Add a reaction"
1165
1166
undo-reaction : " Reverse reaction"
1166
1167
desktop/views/components/note.vue :
1167
1168
reply : " Reply"
1168
1169
renote : " Renote"
1170
+ quote : " Quote"
1169
1171
add-reaction : " Add a reaction"
1170
1172
undo-reaction : " Reverse reaction"
1171
1173
detail : " Details"
Original file line number Diff line number Diff line change @@ -1265,12 +1265,14 @@ desktop/views/components/note-detail.vue:
1265
1265
location : " 位置情報"
1266
1266
reply : " 返信"
1267
1267
renote : " Renote"
1268
+ quote : " 引用"
1268
1269
add-reaction : " リアクション"
1269
1270
undo-reaction : " リアクション解除"
1270
1271
1271
1272
desktop/views/components/note.vue :
1272
1273
reply : " 返信"
1273
1274
renote : " Renote"
1275
+ quote : " 引用"
1274
1276
add-reaction : " リアクション"
1275
1277
undo-reaction : " リアクション解除"
1276
1278
detail : " 詳細"
Original file line number Diff line number Diff line change @@ -155,6 +155,12 @@ export default (opts: Opts = {}) => ({
155
155
} ) ;
156
156
} ,
157
157
158
+ directRenote ( ) {
159
+ this . $root . api ( 'notes/create' , {
160
+ renoteId : this . appearNote . id
161
+ } ) ;
162
+ } ,
163
+
158
164
undoRenote ( ) {
159
165
this . $root . api ( 'notes/delete' , {
160
166
noteId : this . appearNote . myRenoteId
Original file line number Diff line number Diff line change 67
67
<fa icon =" reply" />
68
68
<p class =" count" v-if =" appearNote.repliesCount + appearNote.quoteCount > 0" >{{ appearNote.repliesCount + appearNote.quoteCount }}</p >
69
69
</button >
70
+
71
+ <!-- Renote -->
70
72
<button v-if =" appearNote.myRenoteId != null" class =" renoteButton renoted" @click =" undoRenote()" title =" Undo" >
71
73
<fa icon =" retweet" /><p class =" count" v-if =" appearNote.renoteCount - appearNote.quoteCount > 0" >{{ appearNote.renoteCount - appearNote.quoteCount }}</p >
72
74
</button >
73
- <button v-else-if =" ['public', 'home'].includes(appearNote.visibility)" class =" renoteButton" @click =" renote ()" :title =" $t('renote')" >
75
+ <button v-else-if =" ['public', 'home'].includes(appearNote.visibility)" class =" renoteButton" @click =" directRenote ()" :title =" $t('renote')" >
74
76
<fa icon =" retweet" /><p class =" count" v-if =" appearNote.renoteCount - appearNote.quoteCount > 0" >{{ appearNote.renoteCount - appearNote.quoteCount }}</p >
75
77
</button >
76
- <button v-else class =" inhibitedButton" >
77
- <fa icon =" ban" />
78
+
79
+ <!-- Quote -->
80
+ <button v-if =" ['public', 'home'].includes(appearNote.visibility)" class =" renoteButton" @click =" renote()" :title =" $t('quote')" >
81
+ <fa icon =" quote-right" /><p class =" count" v-if =" appearNote.quoteCount > 0" >{{ appearNote.quoteCount }}</p >
78
82
</button >
83
+
79
84
<button v-if =" appearNote.myReaction == null" class =" reactionButton" @click =" react()" ref =" reactButton" :title =" $t('add-reaction')" >
80
85
<fa-layers >
81
86
<fa :icon =" faLaugh" />
Original file line number Diff line number Diff line change 76
76
<fa icon =" reply" />
77
77
<p class =" count" v-if =" appearNote.repliesCount + appearNote.quoteCount > 0" >{{ appearNote.repliesCount + appearNote.quoteCount }}</p >
78
78
</button >
79
+
80
+ <!-- Renote -->
79
81
<button v-if =" appearNote.myRenoteId != null" class =" renoteButton button renoted" @click =" undoRenote()" title =" Undo" >
80
82
<fa icon =" retweet" />
81
83
<p class =" count" v-if =" appearNote.renoteCount - appearNote.quoteCount > 0" >{{ appearNote.renoteCount - appearNote.quoteCount }}</p >
82
84
</button >
83
- <button v-else-if =" ['public', 'home'].includes(appearNote.visibility)" class =" renoteButton button" @click =" renote ()" :title =" $t('renote')" >
85
+ <button v-else-if =" ['public', 'home'].includes(appearNote.visibility)" class =" renoteButton button" @click =" directRenote ()" :title =" $t('renote')" >
84
86
<fa icon =" retweet" />
85
87
<p class =" count" v-if =" appearNote.renoteCount - appearNote.quoteCount > 0" >{{ appearNote.renoteCount - appearNote.quoteCount }}</p >
86
88
</button >
87
- <button v-else class =" inhibitedButton button" >
88
- <fa icon =" ban" />
89
+
90
+ <!-- Quote -->
91
+ <button v-if =" ['public', 'home'].includes(appearNote.visibility)" class =" renoteButton button" @click =" renote()" :title =" $t('quote')" >
92
+ <fa icon =" quote-right" />
93
+ <p class =" count" v-if =" appearNote.quoteCount > 0" >{{ appearNote.quoteCount }}</p >
89
94
</button >
95
+
90
96
<button v-if =" appearNote.myReaction == null" class =" reactionButton button" @click =" react()" ref =" reactButton" :title =" $t('add-reaction')" >
91
97
<fa-layers >
92
98
<fa :icon =" faLaugh" />
Original file line number Diff line number Diff line change 66
66
<fa icon =" reply" />
67
67
<p class =" count" v-if =" appearNote.repliesCount + appearNote.quoteCount > 0" >{{ appearNote.repliesCount + appearNote.quoteCount }}</p >
68
68
</button >
69
+
70
+ <!-- Renote -->
69
71
<button v-if =" appearNote.myRenoteId != null" @click =" undoRenote()" title =" Undo" class =" renoted" >
70
72
<fa icon =" retweet" /><p class =" count" v-if =" appearNote.renoteCount - appearNote.quoteCount > 0" >{{ appearNote.renoteCount - appearNote.quoteCount }}</p >
71
73
</button >
72
- <button v-else-if =" ['public', 'home'].includes(appearNote.visibility)" @click =" renote ()" title =" Renote" >
74
+ <button v-else-if =" ['public', 'home'].includes(appearNote.visibility)" @click =" directRenote ()" title =" Renote" >
73
75
<fa icon =" retweet" /><p class =" count" v-if =" appearNote.renoteCount - appearNote.quoteCount > 0" >{{ appearNote.renoteCount - appearNote.quoteCount }}</p >
74
76
</button >
75
- <button v-else >
76
- <fa icon =" ban" />
77
+
78
+ <!-- Quote -->
79
+ <button v-if =" ['public', 'home'].includes(appearNote.visibility)" @click =" renote()" title =" Quote" >
80
+ <fa icon =" quote-right" /><p class =" count" v-if =" appearNote.quoteCount > 0" >{{ appearNote.quoteCount }}</p >
77
81
</button >
82
+
78
83
<button v-if =" appearNote.myReaction == null" class =" reactionButton" @click =" react()" ref =" reactButton" >
79
84
<fa-layers >
80
85
<fa :icon =" faLaugh" />
Original file line number Diff line number Diff line change 67
67
<fa icon =" reply" />
68
68
<p class =" count" v-if =" appearNote.repliesCount + appearNote.quoteCount > 0" >{{ appearNote.repliesCount + appearNote.quoteCount }}</p >
69
69
</button >
70
+
71
+ <!-- Renote -->
70
72
<button v-if =" appearNote.myRenoteId != null" @click =" undoRenote()" title =" Undo" class =" button renoted" >
71
73
<fa icon =" retweet" /><p class =" count" v-if =" appearNote.renoteCount - appearNote.quoteCount > 0" >{{ appearNote.renoteCount - appearNote.quoteCount }}</p >
72
-
73
74
</button >
74
- <button v-else-if =" ['public', 'home'].includes(appearNote.visibility)" @click =" renote ()" title =" Renote" class =" button" >
75
+ <button v-else-if =" ['public', 'home'].includes(appearNote.visibility)" @click =" directRenote ()" title =" Renote" class =" button" >
75
76
<fa icon =" retweet" /><p class =" count" v-if =" appearNote.renoteCount - appearNote.quoteCount > 0" >{{ appearNote.renoteCount - appearNote.quoteCount }}</p >
76
77
</button >
77
- <button v-else class =" button" >
78
- <fa icon =" ban" />
78
+
79
+ <!-- Quote -->
80
+ <button v-if =" ['public', 'home'].includes(appearNote.visibility)" @click =" renote()" title =" Quote" class =" button" >
81
+ <fa icon =" quote-right" /><p class =" count" v-if =" appearNote.quoteCount > 0" >{{ appearNote.quoteCount }}</p >
79
82
</button >
83
+
80
84
<button v-if =" appearNote.myReaction == null" class =" button" @click =" react()" ref =" reactButton" >
81
85
<fa-layers >
82
86
<fa :icon =" faLaugh" />
You can’t perform that action at this time.
0 commit comments