Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
W
ww_question
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
template admin
ww_question
Commits
21870381
Commit
21870381
authored
Feb 26, 2020
by
liujiaxin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix audio component remove function
parent
b97eab67
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
audio-recorder.component.html
src/app/common/audio-recorder/audio-recorder.component.html
+2
-2
audio-recorder.component.ts
src/app/common/audio-recorder/audio-recorder.component.ts
+1
-0
No files found.
src/app/common/audio-recorder/audio-recorder.component.html
View file @
21870381
<div
class=
"d-flex"
>
<div
class=
"d-flex"
>
<div
class=
"p-btn-record d-flex"
>
<div
class=
"p-btn-record d-flex"
>
<div
class=
"btn-clear"
(
click
)="
onBtnClearAudio
()"
*
ngIf=
"withRmBtn && (audioUrl || audioBlob)"
>
<div
class=
"btn-clear"
style=
"cursor: pointer"
(
click
)="
onBtnClearAudio
()"
*
ngIf=
"withRmBtn && (audioUrl || audioBlob)"
>
<fa-icon
icon=
"
close
"
></fa-icon>
<fa-icon
icon=
"
times
"
></fa-icon>
</div>
</div>
<div
class=
"btn-record"
*
ngIf=
"type===Type.RECORD && !isUploading"
<div
class=
"btn-record"
*
ngIf=
"type===Type.RECORD && !isUploading"
[
class
.
p-recording
]="
isRecording
"
[
class
.
p-recording
]="
isRecording
"
...
...
src/app/common/audio-recorder/audio-recorder.component.ts
View file @
21870381
...
@@ -145,6 +145,7 @@ export class AudioRecorderComponent implements OnInit, OnChanges, OnDestroy {
...
@@ -145,6 +145,7 @@ export class AudioRecorderComponent implements OnInit, OnChanges, OnDestroy {
onBtnSwitchType
()
{
onBtnSwitchType
()
{
}
}
onBtnClearAudio
()
{
onBtnClearAudio
()
{
this
.
audioUrl
=
null
;
this
.
audioRemoved
.
emit
();
this
.
audioRemoved
.
emit
();
}
}
...
...
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