blob: dbbcc4596714399fc77ce005bc2ad8f2e4dd909a (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
import Operator from "../Operator";
import NavigateClient from "../../clients/NavigateClient";
import TabPresenter from "../../presenters/TabPresenter";
export default class NavigateLinkNextOperator implements Operator {
constructor(
private readonly tabPresenter: TabPresenter,
private readonly navigateClient: NavigateClient
) {}
async run(): Promise<void> {
const tab = await this.tabPresenter.getCurrent();
await this.navigateClient.linkNext(tab.id!);
}
}
|