Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
simple-editor
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Schedules
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Public
simple-editor
Commits
f5acc11c
Commit
f5acc11c
authored
Jan 11, 2022
by
Jonathan Thomas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Only add Caption effect when needed
parent
99176a92
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
Clips.vue
src/components/Clips.vue
+3
-1
No files found.
src/components/Clips.vue
View file @
f5acc11c
...
...
@@ -154,12 +154,14 @@ export default {
caption
.
caption_text
+=
`
${
start_timestamp
}
-->
${
end_timestamp
}
\n
${
clip
.
json
.
text
}
\n\n`
}
}
// Save caption effect
// Save caption effect (if any text is needed)
if
(
effect_payload
.
end
>
0
)
{
if
(
is_effect_new
)
{
await
this
.
createEffect
(
effect_payload
)
}
else
{
await
this
.
updateEffect
(
effect_payload
)
}
}
// Create export
let
payload
=
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment