mirror of
https://github.com/thelounge/thelounge
synced 2024-11-25 05:20:21 +00:00
Client/Settings: Remove bogus settings-form prop
As is this has no effect, other than looking weird in html: <div settings-form="[object HTMLFormElement]"><div><h2>Native app</h2>
This commit is contained in:
parent
9ee1cf13a8
commit
12d9ef34f0
1 changed files with 2 additions and 4 deletions
|
@ -7,14 +7,14 @@
|
||||||
|
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<form ref="settingsForm" autocomplete="off" @change="onChange" @submit.prevent>
|
<form ref="settingsForm" autocomplete="off" @change="onChange" @submit.prevent>
|
||||||
<router-view :settings-form="settingsForm"></router-view>
|
<router-view></router-view>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import {defineComponent, ref} from "vue";
|
import {defineComponent} from "vue";
|
||||||
import SidebarToggle from "../SidebarToggle.vue";
|
import SidebarToggle from "../SidebarToggle.vue";
|
||||||
import Navigation from "../Settings/Navigation.vue";
|
import Navigation from "../Settings/Navigation.vue";
|
||||||
import {useStore} from "../../js/store";
|
import {useStore} from "../../js/store";
|
||||||
|
@ -27,7 +27,6 @@ export default defineComponent({
|
||||||
},
|
},
|
||||||
setup() {
|
setup() {
|
||||||
const store = useStore();
|
const store = useStore();
|
||||||
const settingsForm = ref<HTMLFormElement>();
|
|
||||||
|
|
||||||
const onChange = (event: Event) => {
|
const onChange = (event: Event) => {
|
||||||
const ignore = ["old_password", "new_password", "verify_password"];
|
const ignore = ["old_password", "new_password", "verify_password"];
|
||||||
|
@ -51,7 +50,6 @@ export default defineComponent({
|
||||||
|
|
||||||
return {
|
return {
|
||||||
onChange,
|
onChange,
|
||||||
settingsForm,
|
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue