Skip to content

Commit

Permalink
Fix oppia#6933: Fix modal and status issue in translation tab. (oppia…
Browse files Browse the repository at this point in the history
  • Loading branch information
DubeySandeep authored Jun 19, 2019
1 parent 24a1d60 commit c8af998
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -100,16 +100,18 @@ oppia.directive('audioTranslationBar', [
'ContextService', 'EditabilityService', 'ExplorationStatesService',
'IdGenerationService', 'SiteAnalyticsService',
'StateEditorService', 'StateRecordedVoiceoversService',
'TranslationLanguageService', 'TranslationTabActiveContentIdService',
'RECORDING_TIME_LIMIT', 'VoiceoverRecordingService',
'TranslationLanguageService', 'TranslationStatusService',
'TranslationTabActiveContentIdService', 'VoiceoverRecordingService',
'RECORDING_TIME_LIMIT',
function(
$filter, $interval, $rootScope, $scope, $uibModal, $window,
AlertsService, AssetsBackendApiService, AudioPlayerService,
ContextService, EditabilityService, ExplorationStatesService,
IdGenerationService, SiteAnalyticsService,
StateEditorService, StateRecordedVoiceoversService,
TranslationLanguageService, TranslationTabActiveContentIdService,
RECORDING_TIME_LIMIT, VoiceoverRecordingService) {
TranslationLanguageService, TranslationStatusService,
TranslationTabActiveContentIdService, VoiceoverRecordingService,
RECORDING_TIME_LIMIT) {
$scope.recordingTimeLimit = RECORDING_TIME_LIMIT;
$scope.audioBlob = null;
$scope.voiceoverRecorder = null;
Expand Down Expand Up @@ -143,6 +145,7 @@ oppia.directive('audioTranslationBar', [
var stateName = StateEditorService.getActiveStateName();
var value = StateRecordedVoiceoversService.displayed;
ExplorationStatesService.saveRecordedVoiceovers(stateName, value);
TranslationStatusService.refresh();
};

var getAvailableAudio = function(contentId, languageCode) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ oppia.directive('stateTranslationEditor', [
}
$uibModal.open({
templateUrl: UrlInterpolationService.getDirectiveTemplateUrl(
'/components/forms/' +
'mark_audio_as_needing_update_modal_directive.html'),
'/components/forms/forms-templates/' +
'mark-audio-as-needing-update-modal.template.html'),
backdrop: true,
controller: ['$scope', '$uibModalInstance', function(
$scope, $uibModalInstance) {
Expand Down

0 comments on commit c8af998

Please sign in to comment.