Skip to content

Commit ee90361

Browse files
cci: remove diffs when instant archiving
1 parent edca220 commit ee90361

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/ui/root/DeputyContributionSurveySection.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ import classMix from '../../util/classMix';
2626
import dangerModeConfirm from '../../util/dangerModeConfirm';
2727
import normalizeWikiHeading, { WikiHeading } from '../../wiki/util/normalizeWikiHeading';
2828
import parseDiffUrl from '../../wiki/util/parseDiffUrl';
29+
import { ContributionSurveyRowStatus } from '../../models/ContributionSurveyRowStatus';
2930

3031
/**
3132
* The contribution survey section UI element. This includes a list of revisions
@@ -846,6 +847,10 @@ export default class DeputyContributionSurveySection implements DeputyUIElement
846847
title: mw.msg( 'deputy.session.section.instantArchive.title' )
847848
} );
848849
instantArchiveButton.on( 'click', () => {
850+
this.rows.forEach( v =>
851+
// Just completely wipe it
852+
v.revisions = []
853+
);
849854
this.closingCheckbox.setSelected( true );
850855
this.saveButton.emit( 'click' );
851856
} );

0 commit comments

Comments
 (0)