Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Sharkey
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Dima Krasner
Sharkey
Commits
5431b512
Commit
5431b512
authored
3 years ago
by
syuilo
Browse files
Options
Downloads
Patches
Plain Diff
fix
parent
476dfb0f
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
packages/client/src/components/note-detailed.vue
+13
-2
13 additions, 2 deletions
packages/client/src/components/note-detailed.vue
with
13 additions
and
2 deletions
packages/client/src/components/note-detailed.vue
+
13
−
2
View file @
5431b512
...
...
@@ -154,7 +154,18 @@ const props = defineProps<{
const
inChannel
=
inject
(
'
inChannel
'
,
null
);
const
note
=
$ref
(
JSON
.
parse
(
JSON
.
stringify
(
props
.
note
)));
let
note
=
$ref
(
JSON
.
parse
(
JSON
.
stringify
(
props
.
note
)));
// plugin
if
(
noteViewInterruptors
.
length
>
0
)
{
onMounted
(
async
()
=>
{
let
result
=
JSON
.
parse
(
JSON
.
stringify
(
note
));
for
(
const
interruptor
of
noteViewInterruptors
)
{
result
=
await
interruptor
.
handler
(
result
);
}
note
=
result
;
});
}
const
isRenote
=
(
note
.
renote
!=
null
&&
...
...
@@ -168,7 +179,7 @@ const menuButton = ref<HTMLElement>();
const
renoteButton
=
ref
<
InstanceType
<
typeof
XRenoteButton
>>
();
const
renoteTime
=
ref
<
HTMLElement
>
();
const
reactButton
=
ref
<
HTMLElement
>
();
let
appearNote
=
$
ref
(
isRenote
?
note
.
renote
as
misskey
.
entities
.
Note
:
note
);
let
appearNote
=
$
computed
(()
=>
isRenote
?
note
.
renote
as
misskey
.
entities
.
Note
:
note
);
const
isMyRenote
=
$i
&&
(
$i
.
id
===
note
.
userId
);
const
showContent
=
ref
(
false
);
const
isDeleted
=
ref
(
false
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment