diff options
-rw-r--r-- | lib/Service/SettingsService.php | 1 | ||||
-rw-r--r-- | src/components/TheSettings.vue | 61 |
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) { |