From 1171277d4571f20e66f5c04297bf9ceb004a94fb Mon Sep 17 00:00:00 2001 From: tatarhy Date: Sun, 18 Oct 2020 05:55:35 +0900 Subject: [PATCH] feat: play done sound when selected on settings --- src/app/features/config/form-cfgs/sound-form.const.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/app/features/config/form-cfgs/sound-form.const.ts b/src/app/features/config/form-cfgs/sound-form.const.ts index fcb4856bb0..70e5a4c9f5 100644 --- a/src/app/features/config/form-cfgs/sound-form.const.ts +++ b/src/app/features/config/form-cfgs/sound-form.const.ts @@ -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 = { title: T.GCF.SOUND.TITLE, @@ -41,6 +42,7 @@ export const SOUND_FORM_CFG: ConfigFormSection = { hideExpression: ((model: any) => { return !model.isPlayDoneSound; }), + change: ({ model }) => playDoneSound(model), }, }, {