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