Skip to content
This repository was archived by the owner on Sep 23, 2023. It is now read-only.

Commit 7abad9c

Browse files
edg2sMatmaRex
authored andcommitted
Show progress bar as pending while wiki is being built
This ability was added upstream for this use case.
1 parent a91264c commit 7abad9c

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

new.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
document.getElementsByClassName( 'installProgressField' )[ 0 ]
77
);
88

9+
pd.installProgressField.fieldWidget.pushPending();
10+
911
pd.openWiki = OO.ui.infuse(
1012
document.getElementsByClassName( 'openWiki' )[ 0 ]
1113
);

new.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ function abandon( $err ) {
2323
echo <<<EOT
2424
<script>
2525
pd.installProgressField.fieldWidget.setDisabled( true );
26+
pd.installProgressField.fieldWidget.popPending();
2627
pd.installProgressField.setErrors( [ $errJson ] );
2728
</script>
2829
EOT;
@@ -42,6 +43,7 @@ function set_progress( int $pc, string $label ) {
4243
if ( $pc === 100 ) {
4344
echo <<<EOT
4445
<script>
46+
pd.installProgressField.fieldWidget.popPending();
4547
pd.openWiki.setDisabled( false );
4648
</script>
4749
EOT;

0 commit comments

Comments
 (0)