Skip to content
This repository was archived by the owner on Aug 7, 2020. It is now read-only.

Commit 411e594

Browse files
cbourgoisAxelPeter
authored andcommitted
fix(oui-modal): hide content when loading (#373)
1 parent 3cf0575 commit 411e594

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

packages/oui-modal/src/modal.html

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,16 @@
1212
ng-class="'oui-icon-' + $ctrl.type + '_circle'"
1313
aria-hidden="true">
1414
</span>
15-
<div class="oui-modal__loader"
16-
ng-if="$ctrl.loading">
17-
<oui-spinner></oui-spinner>
18-
</div>
1915
<h2 class="oui-modal__title"
2016
ng-if="::!!$ctrl.heading"
2117
ng-bind="::$ctrl.heading">
2218
</h2>
23-
<div ng-transclude></div>
19+
<div class="oui-modal__loader"
20+
ng-if="$ctrl.loading">
21+
<oui-spinner></oui-spinner>
22+
</div>
23+
<div ng-if="!$ctrl.loading"
24+
ng-transclude></div>
2425
</div>
2526
<div class="oui-modal__footer">
2627
<button class="oui-button oui-button_secondary"

0 commit comments

Comments
 (0)