Skip to content
This repository has been archived by the owner on Oct 20, 2021. It is now read-only.

Commit

Permalink
fix(documentation): Add a spinner when the documentation is loading
Browse files Browse the repository at this point in the history
  • Loading branch information
NicolasGeraud committed Nov 27, 2019
1 parent b0b5c65 commit b6ef5ea
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
Binary file added src/assets/spinner.gif
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/portal/api/header/api-header.html
Expand Up @@ -71,7 +71,7 @@ <h2>{{ 'api.header.views' | translate }}</h2>
<a ui-sref="portal.api.detail({apiId: $ctrl.api.id})">Overview</a>
</li>
<li ui-sref-active="active">
<a ui-sref="portal.api.pages({apiId: $ctrl.api.id})">{{'api.documentation.title' | translate}}</a>
<a ui-sref="portal.api.pages({apiId: $ctrl.api.id})" ui-sref-opts="{reload: true}">{{'api.documentation.title' | translate}}</a>
</li>
<li ui-sref-active="active" ng-if="$ctrl.supportEnabled">
<a ui-sref="portal.api.support({apiId: $ctrl.api.id})">{{'menu.support' | translate}}</a>
Expand Down
6 changes: 5 additions & 1 deletion src/portal/components/documentation/pages.html
Expand Up @@ -45,6 +45,10 @@
</li>
</ul>
</div>
<div flex="85" ui-view></div>
<div flex="85" ui-view>
<div layout="column" layout-align="center center">
<img src="/assets/spinner.gif">
</div>
</div>
</md-content>
</div>

0 comments on commit b6ef5ea

Please sign in to comment.