Skip to content

Commit

Permalink
fix(vue): rename swipeEnable to swipeGesture (#17346)
Browse files Browse the repository at this point in the history
fixes #16002
  • Loading branch information
tomskoda authored and brandyscarney committed Jul 24, 2019
1 parent 67ffe2f commit c2348f7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions vue/src/controllers/menu-controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ export class MenuController {
* @param [menuId] Optionally get the menu by its id, or side.
* @return Returns the instance of the menu, which is useful for chaining.
*/
swipeEnable(shouldEnable: boolean, menuId?: string): Promise<HTMLIonMenuElement> {
return proxyMethod(CTRL, 'swipeEnable', shouldEnable, menuId);
swipeGesture(shouldEnable: boolean, menuId?: string): Promise<HTMLIonMenuElement> {
return proxyMethod(CTRL, 'swipeGesture', shouldEnable, menuId);
}

/**
Expand Down
2 changes: 1 addition & 1 deletion vue/src/interfaces.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ export interface ProxyMenuControllerInterface {
close(menuId?: string): Promise<boolean>;
toggle(menuId?: string): Promise<boolean>;
enable(shouldEnable: boolean, menuId?: string): Promise<HTMLElement>;
swipeEnable(shouldEnable: boolean, menuId?: string): Promise<HTMLElement>;
swipeGesture(shouldEnable: boolean, menuId?: string): Promise<HTMLElement>;
isOpen(menuId?: string): Promise<boolean>;
isEnabled(menuId?: string): Promise<boolean>;
get(menuId?: string): Promise<HTMLElement>;
Expand Down

0 comments on commit c2348f7

Please sign in to comment.