Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/tasks.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRaimund Schlüßler <raimund.schluessler@mailbox.org>2018-09-23 18:05:47 +0300
committerRaimund Schlüßler <raimund.schluessler@mailbox.org>2019-01-25 22:36:29 +0300
commitf2cb856aa6a4f74adba77b92e6b255cb1e7acb87 (patch)
tree79c5116084166c5a9a99763e06f074e746aa9ff8
parentdadfcb173be17db00b739c5dd9f32b9623874a01 (diff)
Remove start of week setting
We will use the server setting
-rw-r--r--lib/Service/SettingsService.php1
-rw-r--r--src/components/TheSettings.vue61
2 files changed, 6 insertions, 56 deletions
diff --git a/lib/Service/SettingsService.php b/lib/Service/SettingsService.php
index 1440cf8d..3308c1cc 100644
--- a/lib/Service/SettingsService.php
+++ b/lib/Service/SettingsService.php
@@ -44,7 +44,6 @@ class SettingsService {
public function get() {
$settings = array(
'showHidden' => (int)$this->settings->getUserValue($this->userId, $this->appName,'various_showHidden'),
- 'startOfWeek' => (int)$this->settings->getUserValue($this->userId, $this->appName,'various_startOfWeek'),
'sortOrder' => (string)$this->settings->getUserValue($this->userId, $this->appName,'various_sortOrder'),
'sortDirection' => (bool)$this->settings->getUserValue($this->userId, $this->appName,'various_sortDirection'),
'userID' => $this->userId
diff --git a/src/components/TheSettings.vue b/src/components/TheSettings.vue
index ded0deb7..facb8f62 100644
--- a/src/components/TheSettings.vue
+++ b/src/components/TheSettings.vue
@@ -28,16 +28,6 @@ License along with this library. If not, see <http://www.gnu.org/licenses/>.
</div>
<div id="app-settings-content">
<ul>
- <li>
- <label for="startOfWeek">{{ t('tasks', 'Start of week') }}</label>
- <select id="startOfWeek" v-model="startOfWeek">
- <option v-for="startOfWeekOption in startOfWeekOptions"
- :value="startOfWeekOption.id"
- :key="startOfWeekOption.id">
- {{ startOfWeekOption.name }}
- </option>
- </select>
- </li>
<li class="headline">
{{ t('tasks', 'Visibility of Smart Collections') }}
</li>
@@ -85,54 +75,15 @@ export default {
id: 2,
name: t('tasks', 'Automatic')
}
- ],
- startOfWeekOptions: [
- {
- id: 0,
- name: t('tasks', 'Sunday')
- },
- {
- id: 1,
- name: t('tasks', 'Monday')
- },
- {
- id: 2,
- name: t('tasks', 'Tuesday')
- },
- {
- id: 3,
- name: t('tasks', 'Wednesday')
- },
- {
- id: 4,
- name: t('tasks', 'Thursday')
- },
- {
- id: 5,
- name: t('tasks', 'Friday')
- },
- {
- id: 6,
- name: t('tasks', 'Saturday')
- }
]
}
},
- computed: Object.assign({
- startOfWeek: {
- get() {
- return this.$store.state.settings.startOfWeek
- },
- set(value) {
- this.$store.dispatch('setSetting', { type: 'startOfWeek', value: value })
- }
- }
- },
- mapState({
- collections: state => state.collections,
- calendars: state => state.calendars,
- dayOfMonth: state => state.dayOfMonth
- })
+ computed: Object.assign({},
+ mapState({
+ collections: state => state.collections,
+ calendars: state => state.calendars,
+ dayOfMonth: state => state.dayOfMonth
+ })
),
methods: {
setVisibility: function(e, collectionID) {