Skip to content

Commit 6276dca

Browse files
committed
MC-18709: [WYSIWYG]Spinner is Always Displayed on Media Gallery popup
1 parent e95cca3 commit 6276dca

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

lib/web/mage/loader.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,10 @@ define([
6969
show: function (e, ctx) {
7070
this._render();
7171
this.loaderStarted++;
72-
this.spinner.show();
72+
73+
if (this.loaderStarted === 1) {
74+
this.spinner.show();
75+
}
7376

7477
if (ctx) {
7578
this.spinner

lib/web/mage/loader_old.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,10 @@
8181
show: function (e, ctx) {
8282
this._render();
8383
this.loaderStarted++;
84-
this.spinner.show();
84+
85+
if (this.loaderStarted === 1) {
86+
this.spinner.show();
87+
}
8588

8689
if (ctx) {
8790
this.spinner

0 commit comments

Comments
 (0)