Skip to content

Commit

Permalink
fix: remove obsolete client section from settings
Browse files Browse the repository at this point in the history
  • Loading branch information
sualko committed Feb 11, 2019
1 parent 7f2eed0 commit 8db5f09
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions src/ui/dialogs/settings.ts
Expand Up @@ -6,7 +6,6 @@ import Navigation from '../DialogNavigation'
import List from '../DialogList'
import ListItem from '../DialogListItem'
import AvatarSet from '../AvatarSet'
import Translation from '../../util/Translation';
import Log from '../../util/Log'

const ENOUGH_BITS_OF_ENTROPY = 50;
Expand All @@ -27,7 +26,6 @@ class StartPage extends Page {
//@REVIEW could also return Page or getDOM interface?
protected generateContentElement(): JQuery | JQuery[] {
return [
new ClientSection(this.navigation).getDOM(),
new AccountOverviewSection(this.navigation).getDOM()
];
}
Expand All @@ -37,19 +35,6 @@ class ClientSection extends Section {
protected generateContentElement(): JQuery {
let contentElement = new List();

//@REVIEW more generic? See PluginSection.
let checkboxElement = $('<input>');
checkboxElement.attr('type', 'checkbox');
checkboxElement.prop('checked', Client.getOption('onLogin'));
checkboxElement.on('change', (ev) => {
let isEnabled = $(ev.target).prop('checked');

Client.setOption('onLogin', isEnabled);
});

//@TODO only show if form watcher was used
contentElement.append(new ListItem(Translation.t('On_login'), Translation.t('setting-explanation-login'), undefined, undefined, checkboxElement));

return contentElement.getDOM();
}
}
Expand Down

0 comments on commit 8db5f09

Please sign in to comment.