Skip to content

Commit

Permalink
fix: actions not loading (#448)
Browse files Browse the repository at this point in the history
Co-authored-by: Johnny Almonte <[email protected]>
  • Loading branch information
johnny243 and johnny243 authored Aug 19, 2020
1 parent 9f255cb commit 4b173bd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions app/assets/javascripts/directives/views/actionsMenu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,7 @@ class ActionsMenuCtrl extends PureViewCtrl implements ActionsMenuScope {
this.props.item
);
}));
if (extensionsForItem.length == 0) {
this.loadingExtensions = false;
}
this.loadingExtensions = false;
await this.setState({
extensions: extensionsForItem
});
Expand Down
2 changes: 1 addition & 1 deletion app/assets/templates/directives/actions-menu.pug
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
.sk-menu-panel-column
.sk-menu-panel-header-title Loading...
.sk-spinner.small.loading
div(ng-repeat='extension in self.state.extensions track by extension.uuid; self.loadingExtensions = false')
div(ng-repeat='extension in self.state.extensions track by extension.uuid')
.sk-menu-panel-header(
ng-click='self.updateExtension(extension, { hidden: !extension.hidden }); $event.stopPropagation();'
)
Expand Down

0 comments on commit 4b173bd

Please sign in to comment.