mirror of
https://github.com/johannesjo/super-productivity.git
synced 2026-08-01 04:01:01 +00:00
don't show configuration settings for electron features on web version
This commit is contained in:
parent
657a727acc
commit
c36fb3dbf5
3 changed files with 6 additions and 4 deletions
|
|
@ -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 = {};
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue