Hide notifications audio setting on Linux
This commit is contained in:
parent
21339c6866
commit
dcf651fb51
2 changed files with 13 additions and 5 deletions
|
@ -606,10 +606,12 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<br />
|
<br />
|
||||||
|
{{ #shouldShowAudioNotificationSetting }}
|
||||||
<div class='audio-notification-setting'>
|
<div class='audio-notification-setting'>
|
||||||
<input type='checkbox' name='audio-notification' id='audio-notification'/>
|
<input type='checkbox' name='audio-notification' id='audio-notification'/>
|
||||||
<label for='audio-notification'>{{ audioNotificationDescription }}</label>
|
<label for='audio-notification'>{{ audioNotificationDescription }}</label>
|
||||||
</div>
|
</div>
|
||||||
|
{{ /shouldShowAudioNotificationSetting }}
|
||||||
</div>
|
</div>
|
||||||
</script>
|
</script>
|
||||||
<script type='text/x-tmpl-mustache' id='syncSettings'>
|
<script type='text/x-tmpl-mustache' id='syncSettings'>
|
||||||
|
|
|
@ -4,6 +4,8 @@
|
||||||
(function () {
|
(function () {
|
||||||
'use strict';
|
'use strict';
|
||||||
window.Whisper = window.Whisper || {};
|
window.Whisper = window.Whisper || {};
|
||||||
|
const { OS } = window.Signal;
|
||||||
|
const { Settings } = window.Signal.Types;
|
||||||
|
|
||||||
var CheckboxView = Whisper.View.extend({
|
var CheckboxView = Whisper.View.extend({
|
||||||
initialize: function(options) {
|
initialize: function(options) {
|
||||||
|
@ -68,11 +70,13 @@
|
||||||
name: 'theme-setting',
|
name: 'theme-setting',
|
||||||
event: 'change-theme'
|
event: 'change-theme'
|
||||||
});
|
});
|
||||||
new CheckboxView({
|
if (Settings.shouldShowAudioNotificationSetting()) {
|
||||||
el: this.$('.audio-notification-setting'),
|
new CheckboxView({
|
||||||
defaultValue: false,
|
el: this.$('.audio-notification-setting'),
|
||||||
name: 'audio-notification'
|
defaultValue: false,
|
||||||
});
|
name: 'audio-notification'
|
||||||
|
});
|
||||||
|
}
|
||||||
new CheckboxView({
|
new CheckboxView({
|
||||||
el: this.$('.menu-bar-setting'),
|
el: this.$('.menu-bar-setting'),
|
||||||
defaultValue: false,
|
defaultValue: false,
|
||||||
|
@ -100,6 +104,8 @@
|
||||||
noNameOrMessage: i18n('noNameOrMessage'),
|
noNameOrMessage: i18n('noNameOrMessage'),
|
||||||
nameOnly: i18n('nameOnly'),
|
nameOnly: i18n('nameOnly'),
|
||||||
audioNotificationDescription: i18n('audioNotificationDescription'),
|
audioNotificationDescription: i18n('audioNotificationDescription'),
|
||||||
|
shouldShowAudioNotificationSetting:
|
||||||
|
Settings.shouldShowAudioNotificationSetting(),
|
||||||
themeAndroidDark: i18n('themeAndroidDark'),
|
themeAndroidDark: i18n('themeAndroidDark'),
|
||||||
hideMenuBar: i18n('hideMenuBar'),
|
hideMenuBar: i18n('hideMenuBar'),
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue