File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -86,6 +86,7 @@ import {
8686} from ' @mdi/js'
8787import JSConfetti from ' js-confetti'
8888import axios from ' @nextcloud/axios'
89+ import { getCapabilities } from ' @nextcloud/capabilities'
8990import { formatFileSize } from ' @nextcloud/files'
9091import { loadState } from ' @nextcloud/initial-state'
9192import { t } from ' @nextcloud/l10n'
@@ -614,8 +615,10 @@ export default {
614615 && this .document .files .every (file => isSignedStatus (file .status ))
615616 const signerCompleted = this .isCurrentSignerSigned ()
616617 if ((isSignedDoc || allFilesSigned || signerCompleted) && (this .isAfterSigned || this .shouldFireAsyncConfetti )) {
617- const jsConfetti = new JSConfetti ()
618- jsConfetti .addConfetti ()
618+ if (getCapabilities ()? .libresign ? .config ? .[' show-confetti' ] === true ) {
619+ const jsConfetti = new JSConfetti ()
620+ jsConfetti .addConfetti ()
621+ }
619622 this .shouldFireAsyncConfetti = false
620623 }
621624 },
You can’t perform that action at this time.
0 commit comments