mirror of
https://git.sr.ht/~emersion/gamja
synced 2024-11-14 19:25:26 -05:00
Rename Connect/Join to ConnectForm/JoinForm
This commit is contained in:
parent
c83a74cc50
commit
4257463b46
3 changed files with 6 additions and 6 deletions
|
@ -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;
|
||||
|
|
|
@ -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: "",
|
|
@ -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: "#",
|
||||
};
|
Loading…
Reference in a new issue