Skip to content

Commit

Permalink
fix: typescript errors
Browse files Browse the repository at this point in the history
  • Loading branch information
arielsvg committed Aug 12, 2020
1 parent 0c1f3d4 commit 2fb6adb
Show file tree
Hide file tree
Showing 31 changed files with 233 additions and 1,463 deletions.
622 changes: 0 additions & 622 deletions app/assets/javascripts/directives/views/accountMenu.js

This file was deleted.

8 changes: 4 additions & 4 deletions app/assets/javascripts/directives/views/actionsMenu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -137,8 +137,8 @@ class ActionsMenuCtrl extends PureViewCtrl implements ActionsMenuScope {
...action,
running: params?.running,
error: params?.error,
subrows: params?.subrows || act?.subrows,
};
subrows: params?.subrows || act?.subrows,
} as Action;
}
return act;
});
Expand All @@ -147,12 +147,12 @@ class ActionsMenuCtrl extends PureViewCtrl implements ActionsMenuScope {
}

private async updateExtension(
extension: SNActionsExtension,
extension: SNActionsExtension,
params?: UpdateExtensionParams
) {
const updatedExtension = await this.application.changeItem(extension.uuid, (mutator) => {
const extensionMutator = mutator as ActionsExtensionMutator;
extensionMutator.hidden = params && params.hidden;
extensionMutator.hidden = Boolean(params?.hidden);
}) as SNActionsExtension;
const extensions = this.state.extensions.map((ext: SNActionsExtension) => {
if (extension.uuid === ext.uuid) {
Expand Down
280 changes: 0 additions & 280 deletions app/assets/javascripts/directives/views/componentView.js

This file was deleted.

Loading

0 comments on commit 2fb6adb

Please sign in to comment.