Remove start of week setting
We will use the server setting
This commit is contained in:
parent
dadfcb173b
commit
f2cb856aa6
2 changed files with 6 additions and 56 deletions
|
@ -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
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue