Merge pull request #590 from tatarhy/master

feat: play done sound when selected on settings
This commit is contained in:
Johannes Millan 2020-10-17 23:42:25 +02:00 committed by GitHub
commit ee57ed2a28
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,6 +1,7 @@
// tslint:disable:max-line-length
import { ConfigFormSection, SoundConfig } from '../global-config.model';
import { T } from '../../../t.const';
import { playDoneSound } from '../../tasks/util/play-done-sound';
export const SOUND_FORM_CFG: ConfigFormSection<SoundConfig> = {
title: T.GCF.SOUND.TITLE,
@ -41,6 +42,7 @@ export const SOUND_FORM_CFG: ConfigFormSection<SoundConfig> = {
hideExpression: ((model: any) => {
return !model.isPlayDoneSound;
}),
change: ({ model }) => playDoneSound(model),
},
},
{