blob: c04b8a951ad802af6970f79f3a062089682d5e5d (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
|
import Operator from "../Operator";
import TabPresenter from "../../presenters/TabPresenter";
export default class SelectFirstTabOperator implements Operator {
constructor(private readonly tabPresenter: TabPresenter) {}
async run(): Promise<void> {
const tabs = await this.tabPresenter.getAll();
return this.tabPresenter.select(tabs[0].id as number);
}
}
|