File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
src/components/Main/MainView/MessageElement Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -179,19 +179,19 @@ const onDotsClick = (e: MouseEvent) => {
179
179
}
180
180
181
181
const DEFAULT_CLIP_FOLDER_ID = ' 201fcb38-3dbe-4a53-8c0c-37b47bed9985' // FIXME: あとで直す
182
- const clippedFolders = ref (new Set <ClipFolderId >())
182
+ const clippingFolderIds = ref (new Set <ClipFolderId >())
183
183
const isClipped = computed (() =>
184
- clippedFolders .value .has (DEFAULT_CLIP_FOLDER_ID )
184
+ clippingFolderIds .value .has (DEFAULT_CLIP_FOLDER_ID )
185
185
)
186
186
187
187
apis .getMessageClips (props .messageId ).then (res => {
188
- clippedFolders .value = new Set (res .data .map (c => c .folderId ))
188
+ clippingFolderIds .value = new Set (res .data .map (c => c .folderId ))
189
189
})
190
190
const clipIconName = computed (() => {
191
191
return isClipped .value ? ' bookmark-check' : ' bookmark'
192
192
})
193
193
194
- const { toggleClip } = useCreateClip (props .messageId , clippedFolders )
194
+ const { toggleClip } = useCreateClip (props .messageId , clippingFolderIds )
195
195
const openClipCreateModal = () => {
196
196
toggleClip (DEFAULT_CLIP_FOLDER_ID )
197
197
}
You can’t perform that action at this time.
0 commit comments