don't show configuration settings for electron features on web version

This commit is contained in:
Johannes Millan 2017-01-10 20:54:04 +01:00
parent 657a727acc
commit c36fb3dbf5
3 changed files with 6 additions and 4 deletions

View file

@ -95,7 +95,7 @@
$mdThemingProvider.alwaysWatchTheme(true);
}
function initGlobalModels(LS_DEFAULTS, DEFAULT_THEME, $rootScope, Tasks, $localStorage, Projects) {
function initGlobalModels(LS_DEFAULTS, DEFAULT_THEME, $rootScope, Tasks, $localStorage, Projects, IS_ELECTRON) {
$localStorage.$default(LS_DEFAULTS);
$rootScope.r = {};

View file

@ -46,7 +46,7 @@
</section>
<section>
<section ng-if="vm.IS_ELECTRON">
<h2 class="md-title">Jira-Setup for Task Suggestion</h2>
<form ng-submit="vm.saveJiraSettings(vm.jiraSettings)">
<md-input-container class="md-block"
@ -102,7 +102,7 @@
</section>
<section>
<section ng-if="vm.IS_ELECTRON">
<h2 class="md-title">Git integration</h2>
<p>Set project directory to show the days commits at summary.</p>
<md-input-container class="md-block"

View file

@ -14,9 +14,11 @@
.controller('SettingsCtrl', SettingsCtrl);
/* @ngInject */
function SettingsCtrl($localStorage, $rootScope, $scope, Projects, Dialogs, DEFAULT_THEME, THEMES, SimpleToast) {
function SettingsCtrl($localStorage, $rootScope, $scope, Projects, Dialogs, DEFAULT_THEME, THEMES, IS_ELECTRON, SimpleToast) {
let vm = this;
vm.IS_ELECTRON = IS_ELECTRON;
function init() {
vm.r = $rootScope.r;
vm.allProjects = Projects.getList();