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")
}
This commit is contained in:
parent
c57089224e
commit
f65c068c67
6 changed files with 21 additions and 8 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Reference in a new issue