Scroll into opened Setting
This commit is contained in:
+1
-1
@@ -1,4 +1,4 @@
|
||||
export const GenericSettingMixin = {
|
||||
export const GenericUserPreferencesMixin = {
|
||||
methods: {
|
||||
setUserPreference (preferenceType, subtype) {
|
||||
const settings = {};
|
||||
@@ -44,6 +44,10 @@ export const InlineSettingMixin = {
|
||||
_openIt () {
|
||||
this.sharedState.markAsOpened(this);
|
||||
this.modalVisible = true;
|
||||
|
||||
this.$el.scrollTo({
|
||||
behavior: 'smooth',
|
||||
});
|
||||
},
|
||||
_hidePrevious () {
|
||||
this.sharedState.instanceOfCurrentlyOpened.resetControls();
|
||||
|
||||
@@ -121,13 +121,13 @@ import { mapState } from '@/libs/store';
|
||||
import SaveCancelButtons from '../components/saveCancelButtons.vue';
|
||||
import { InlineSettingMixin } from '../components/inlineSettingMixin';
|
||||
import SelectList from '@/components/ui/selectList';
|
||||
import { GenericSettingMixin } from '../components/genericSettingMixin';
|
||||
import { GenericUserPreferencesMixin } from '../components/genericUserPreferencesMixin';
|
||||
import sounds from '@/libs/sounds';
|
||||
import ToggleSwitch from '@/components/ui/toggleSwitch.vue';
|
||||
|
||||
export default {
|
||||
components: { ToggleSwitch, SelectList, SaveCancelButtons },
|
||||
mixins: [InlineSettingMixin, GenericSettingMixin],
|
||||
mixins: [InlineSettingMixin, GenericUserPreferencesMixin],
|
||||
data () {
|
||||
return {
|
||||
soundIndex: 0,
|
||||
|
||||
@@ -77,11 +77,11 @@ import { mapState } from '@/libs/store';
|
||||
import SaveCancelButtons from '../components/saveCancelButtons.vue';
|
||||
import { InlineSettingMixin } from '../components/inlineSettingMixin';
|
||||
import SelectList from '@/components/ui/selectList';
|
||||
import { GenericSettingMixin } from '../components/genericSettingMixin';
|
||||
import { GenericUserPreferencesMixin } from '../components/genericUserPreferencesMixin';
|
||||
|
||||
export default {
|
||||
components: { SelectList, SaveCancelButtons },
|
||||
mixins: [InlineSettingMixin, GenericSettingMixin],
|
||||
mixins: [InlineSettingMixin, GenericUserPreferencesMixin],
|
||||
data () {
|
||||
return {
|
||||
selectedFormat: '',
|
||||
|
||||
@@ -44,12 +44,12 @@ import { mapState } from '@/libs/store';
|
||||
|
||||
import { InlineSettingMixin } from '../components/inlineSettingMixin';
|
||||
import ToggleSwitch from '@/components/ui/toggleSwitch.vue';
|
||||
import { GenericSettingMixin } from '../components/genericSettingMixin';
|
||||
import { GenericUserPreferencesMixin } from '../components/genericUserPreferencesMixin';
|
||||
|
||||
|
||||
export default {
|
||||
components: { ToggleSwitch },
|
||||
mixins: [InlineSettingMixin, GenericSettingMixin],
|
||||
mixins: [InlineSettingMixin, GenericUserPreferencesMixin],
|
||||
computed: {
|
||||
...mapState({
|
||||
user: 'user.data',
|
||||
|
||||
@@ -89,11 +89,11 @@ import { mapState } from '@/libs/store';
|
||||
import SaveCancelButtons from '../components/saveCancelButtons.vue';
|
||||
import { InlineSettingMixin } from '../components/inlineSettingMixin';
|
||||
import SelectList from '@/components/ui/selectList';
|
||||
import { GenericSettingMixin } from '../components/genericSettingMixin';
|
||||
import { GenericUserPreferencesMixin } from '../components/genericUserPreferencesMixin';
|
||||
|
||||
export default {
|
||||
components: { SelectList, SaveCancelButtons },
|
||||
mixins: [InlineSettingMixin, GenericSettingMixin],
|
||||
mixins: [InlineSettingMixin, GenericUserPreferencesMixin],
|
||||
data () {
|
||||
return {
|
||||
selectedLanguage: '',
|
||||
|
||||
Reference in New Issue
Block a user