Skip to content

Commit

Permalink
Better assembly notifications
Browse files Browse the repository at this point in the history
  • Loading branch information
alopezo committed Jan 23, 2024
1 parent f0498f1 commit 10a6eaf
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,6 @@
<style>html,body{height:100%}body{margin:0;font-family:Roboto,Helvetica Neue,sans-serif}</style><link rel="stylesheet" href="styles.25b54d3c54f3517b.css" media="print" onload="this.media='all'"><noscript><link rel="stylesheet" href="styles.25b54d3c54f3517b.css"></noscript></head>
<body class="mat-typography">
<app-root></app-root>
<script src="runtime.c2d2548033d65b02.js" type="module"></script><script src="polyfills.75186c7b7fc1d123.js" type="module"></script><script src="scripts.a1e2309b4257c7b3.js" defer></script><script src="main.42d3c077cd573b8d.js" type="module"></script>
<script src="runtime.c2d2548033d65b02.js" type="module"></script><script src="polyfills.75186c7b7fc1d123.js" type="module"></script><script src="scripts.a1e2309b4257c7b3.js" defer></script><script src="main.aacddee8ec5944fb.js" type="module"></script>

</body></html>

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,11 @@ export class ListQuestionnairesComponent implements OnInit, OnChanges, AfterView
this.questionnaireService.assembleQuestionnaire(questionnaire).then(assembledQuestionnaire => {
assembledQuestionnaire.title = questionnaire.title + " (assembled)";
this.previewQuestionnaire.emit(assembledQuestionnaire);
this._snackBar.openFromComponent(SnackAlertComponent, {
duration: 2 * 1000,
data: "Questionnaire ready",
panelClass: ['green-snackbar']
});
}).catch(error => {
console.error('Error assembling questionnaire:', error);
// Handle the error
Expand Down

0 comments on commit 10a6eaf

Please sign in to comment.