Former-commit-id: 419fb04f20d9be50358b0d87285fa92855906f97 [formerly fd974c12d0c06b0bde92e201f636c977a1638608] [formerly faa13a4e0c06720f217e7e4387ca0bf9e367365d [formerly 39f39cca29]]
Former-commit-id: b2df427ca1f97e407a549848649bad020eb5453f [formerly 484d32224ca56fa68d6b5b0f01626d69eaa0528b]
Former-commit-id: 81103561b811e456c4e50dd0d8a6e555e8584839
This commit is contained in:
Henrique Dias committed 2017-06-30 12:43:43 +01:00
1 parent 4f964faf6e
commit 5d84c22a91
17 files changed
+169 -413

No files matched your search

+2 -4
View File
@@ -8,15 +8,13 @@
<script>
import page from '../page'
var $ = window.info
export default {
name: 'switch-button',
methods: {
change: function (event) {
let url = window.location.pathname + '?display='
if ($.req.data.display === 'mosaic') {
if (this.$store.state.req.data.display === 'mosaic') {
url += 'list'
} else {
url += 'mosaic'
@@ -25,7 +23,7 @@ export default {
page.open(url)
},
icon: function () {
if ($.req.data.display === 'mosaic') return 'view_list'
if (this.$store.state.req.data.display === 'mosaic') return 'view_list'
return 'view_module'
}
}