diff options
author | Julien Veyssier <eneiluj@posteo.net> | 2020-08-21 17:05:10 +0200 |
---|---|---|
committer | Julien Veyssier <eneiluj@posteo.net> | 2020-08-21 17:05:10 +0200 |
commit | fd2e4e496c5fe7e0fbb4c8126c03d762295b04c7 (patch) | |
tree | 4aeed0ec8cb31118844ef6bb3da2936d81bf6640 /apps/dashboard/src | |
parent | 3940abcf4800db50effa7274282e46b735216c9a (diff) | |
download | nextcloud-server-fd2e4e496c5fe7e0fbb4c8126c03d762295b04c7.tar.gz nextcloud-server-fd2e4e496c5fe7e0fbb4c8126c03d762295b04c7.zip |
fix checkbox order and icons
Signed-off-by: Julien Veyssier <eneiluj@posteo.net>
Diffstat (limited to 'apps/dashboard/src')
-rw-r--r-- | apps/dashboard/src/App.vue | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/apps/dashboard/src/App.vue b/apps/dashboard/src/App.vue index f151648232a..bd41125f500 100644 --- a/apps/dashboard/src/App.vue +++ b/apps/dashboard/src/App.vue @@ -39,7 +39,7 @@ <div class="modal__content"> <h3>{{ t('dashboard', 'Edit widgets') }}</h3> <ol class="panels"> - <li v-for="(cb, status) in allCallbacksStatus" :key="status"> + <li v-for="status in sortedAllStatuses" :key="status"> <input :id="'status-checkbox-' + status" type="checkbox" class="checkbox" @@ -105,11 +105,11 @@ const shippedBackgroundList = loadState('dashboard', 'shippedBackgrounds') const statusInfo = { weather: { text: t('dashboard', 'Weather'), - icon: 'icon-github', + icon: 'icon-weather-status', }, status: { text: t('dashboard', 'User status'), - icon: 'icon-discourse', + icon: 'icon-user-status-online', }, } @@ -190,6 +190,9 @@ export default { isStatusActive() { return (status) => !(status in this.enabledStatuses) || this.enabledStatuses[status] }, + sortedAllStatuses() { + return Object.keys(this.allCallbacksStatus).slice().sort((a, b) => a > b) + }, sortedPanels() { return Object.values(this.panels).sort((a, b) => { const indexA = this.layout.indexOf(a.id) |