Rename Connect/Join to ConnectForm/JoinForm

This commit is contained in:
Simon Ser 2021-03-09 13:25:31 +01:00
parent c83a74cc50
commit 4257463b46
3 changed files with 6 additions and 6 deletions

View file

@ -4,8 +4,8 @@ import Buffer from "./buffer.js";
import BufferList from "./buffer-list.js";
import BufferHeader from "./buffer-header.js";
import MemberList from "./member-list.js";
import Connect from "./connect.js";
import Join from "./join.js";
import ConnectForm from "./connect-form.js";
import JoinForm from "./join-form.js";
import Help from "./help.js";
import Composer from "./composer.js";
import ScrollManager from "./scroll-manager.js";
@ -930,7 +930,7 @@ export default class App extends Component {
if (!activeNetwork || (activeNetwork.status !== NetworkStatus.REGISTERED && !activeBuffer)) {
return html`
<section id="connect">
<${Connect} error=${this.state.error} params=${this.state.connectParams} disabled=${activeNetwork} onSubmit=${this.handleConnectSubmit}/>
<${ConnectForm} error=${this.state.error} params=${this.state.connectParams} disabled=${activeNetwork} onSubmit=${this.handleConnectSubmit}/>
</section>
`;
}
@ -968,7 +968,7 @@ export default class App extends Component {
case "join":
dialog = html`
<${Dialog} title="Join channel" onDismiss=${this.handleDialogDismiss}>
<${Join} onSubmit=${this.handleJoinSubmit}/>
<${JoinForm} onSubmit=${this.handleJoinSubmit}/>
</>
`;
break;

View file

@ -1,6 +1,6 @@
import { html, Component } from "../lib/index.js";
export default class Connect extends Component {
export default class ConnectForm extends Component {
state = {
serverURL: "",
serverPass: "",

View file

@ -1,6 +1,6 @@
import { html, Component } from "../lib/index.js";
export default class Join extends Component {
export default class JoinForm extends Component {
state = {
channel: "#",
};