Compare commits

...

2 Commits

Author SHA1 Message Date
May B. 766c54423d Fix: load more 2019-06-11 12:03:25 +02:00
May B. 19fe6973b2 Herit 2019-06-11 11:52:44 +02:00
3 changed files with 33 additions and 4 deletions

View File

@ -0,0 +1,29 @@
<template lang="pug">
extends model
block input
input(:id="id" ref="input" type="checkbox" :checked="value" @change.stop="handleChange")
</template>
<script lang="ts">
import { Component, Prop } from 'vue-property-decorator'
import BaseSetting from './BaseSetting'
@Component
export default class SettingHeritBoolean extends BaseSetting {
@Prop(Boolean)
readonly value!: boolean | undefined
mounted () {
const input: any = this.$refs.input
input.indeterminate = this.value === undefined
}
handleChange() {
this.sendChange(this.value === false ? undefined : !this.value)
}
}
</script>

View File

@ -2,13 +2,14 @@ import { Component, Prop, Watch } from 'vue-property-decorator'
import { Auth } from '@/types/App'
import SettingBoolean from '../input/SettingBoolean.vue'
import SettingHeritBoolean from '../input/SettingHeritBoolean.vue'
import SettingInt from '../input/SettingInt.vue'
import SettingSelect from '../input/SettingSelect.vue'
import SettingString from '../input/SettingString.vue'
import ServiceEmiter from '../ServiceEmiter'
import ServiceHeader from '../ServiceHeader.vue'
@Component({ components: { ServiceHeader, SettingString, SettingInt, SettingBoolean, SettingSelect } })
@Component({ components: { ServiceHeader, SettingString, SettingInt, SettingBoolean, SettingHeritBoolean, SettingSelect } })
export default class BaseService extends ServiceEmiter {
@Prop({

View File

@ -1,6 +1,6 @@
<template lang="pug">
.client
.statues(@scroll.passive="onScroll" v-show="!hasContext")
.statues(v-show="!hasContext" @scroll.passive="onScroll")
.header(v-if="hasNotifications") Accueil
success-loadable.list(:loadable="statues")
template(v-for="status in statues.get()")
@ -303,12 +303,11 @@ export default class Client extends Mixins<ServiceClient<Options>>(ServiceClient
.list
@include group-tile
flex-grow: 1
overflow-y: scroll
.statues, .notifications, .context, .emoji-list
flex-grow: 1
display: flex
flex-direction: column
overflow: inherit
overflow-y: scroll
height: 100%
.ancestors, .descendants
.status