keep going fixing vuetify

This commit is contained in:
les
2020-07-29 00:25:45 +02:00
parent 411560c218
commit 2dc6e7adb3
6 changed files with 73 additions and 50 deletions

View File

@@ -42,7 +42,7 @@
div
//- el-divider {{$t('common.resources')}}
v-table(:data='paginatedResources' small :row-style='resourceStyle')
v-data-table(:data='resources')
//- el-table-column(:label="$t('common.event')")
//- template(slot-scope='data')
//- span {{data.row.event}}
@@ -64,7 +64,6 @@
</template>
<script>
import { mapState, mapActions } from 'vuex'
import { MessageBox } from 'element-ui'
export default {
name: 'Moderation',

View File

@@ -45,9 +45,14 @@ export default {
primary_color: {
get () { return this.settings['theme.primary'] },
set (value) {
// this.$vuetify.theme.themes.dark.primary = value.hex
this.$vuetify.theme.themes.light.primary = value.hex
this.setSetting({ key: 'theme.primary', value: value.hex })
if (!value) { return }
if (this.settings['theme.is_dark']) {
this.$vuetify.theme.themes.dark.primary = value
} else {
this.$vuetify.theme.themes.light.primary = value
}
// this.$vuetify.theme.themes.light.primary = value.hex
// this.setSetting({ key: 'theme.primary', value: value.hex })
}
}
},