forked from 0x2620/oxjs
hook up transcribe option
This commit is contained in:
parent
6341e64a64
commit
4cde39b182
2 changed files with 8 additions and 3 deletions
|
|
@ -307,7 +307,7 @@ Ox.AnnotationPanel = function(options, self) {
|
|||
{id: 'export', title: Ox._('Export Annotations...'), disabled: !self.options.enableExport},
|
||||
].concat(
|
||||
self.options.enableTranscribe ? [
|
||||
{id: 'transcribe', title: Ox._('Transcribe Audio...')},
|
||||
{id: 'transcribeaudio', title: Ox._('Transcribe Audio...')},
|
||||
]: []
|
||||
)
|
||||
),
|
||||
|
|
@ -357,8 +357,8 @@ Ox.AnnotationPanel = function(options, self) {
|
|||
// ...
|
||||
} else if (data.id == 'showentityinfo') {
|
||||
that.triggerEvent('showentityinfo', annotation.entity);
|
||||
} else if (data.id == 'transcribe') {
|
||||
that.triggerEvent('transcribe');
|
||||
} else if (data.id == 'transcribeaudio') {
|
||||
that.triggerEvent('transcribeaudio');
|
||||
} else if (data.id == 'undo') {
|
||||
// ...
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue