diff options
author | chocolateboy <chocolate@cpan.org> | 2019-07-31 16:17:37 +0100 |
---|---|---|
committer | chocolateboy <chocolate@cpan.org> | 2019-07-31 17:06:48 +0100 |
commit | f65c068c67371f00b7853b4790b926e672f3ca4f (patch) | |
tree | 5de9d7ee7047402d8e341d342e6d5f5c44a1348d /src/background/controllers | |
parent | c57089224ea671178dcf66f5e36b9aed8e6db323 (diff) |
tabs.close: rename selectLeft (boolean) -> select ("left" | "right")
before:
{
"type": "tabs.close",
"selectLeft": true | false // (default: false)
}
after:
{
"type": "tabs.close",
"select": "left" | "right" // (default: "right")
}
Diffstat (limited to 'src/background/controllers')
-rw-r--r-- | src/background/controllers/OperationController.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/background/controllers/OperationController.ts b/src/background/controllers/OperationController.ts index 9480ed5..7a10ad6 100644 --- a/src/background/controllers/OperationController.ts +++ b/src/background/controllers/OperationController.ts @@ -32,7 +32,7 @@ export default class OperationController { doOperation(operation: operations.Operation): Promise<any> { switch (operation.type) { case operations.TAB_CLOSE: - return this.tabUseCase.close(false, operation.selectLeft); + return this.tabUseCase.close(false, operation.select === 'left'); case operations.TAB_CLOSE_RIGHT: return this.tabUseCase.closeRight(); case operations.TAB_CLOSE_FORCE: |