Skip to content

Commit 41bb846

Browse files
authored
Show progress bar in editor toolbar progress dialog & change dialog title (#857)
1 parent 5409c1d commit 41bb846

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

mesop/web/src/editor_toolbar/editor_send_prompt_progress_dialog.ng.html

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
<h3 mat-dialog-title>Mesop Editor Progress</h3>
1+
<mat-progress-bar mode="indeterminate"></mat-progress-bar>
2+
<h3 mat-dialog-title>Generating code...</h3>
23
<mat-dialog-content class="progress-code">
34
<mesop-code-mirror-raw [code]="progress$ | async"></mesop-code-mirror-raw>
45
</mat-dialog-content>

mesop/web/src/editor_toolbar/editor_toolbar.ts

+2
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ import {HighlightPipe} from './highlight_pipe';
3434
import {EditorService, SelectionMode} from '../services/editor_service';
3535
import {isMac} from '../utils/platform';
3636
import {Component as ComponentProto} from 'mesop/mesop/protos/ui_jspb_proto_pb/mesop/protos/ui_pb';
37+
import {MatProgressBarModule} from '@angular/material/progress-bar';
3738

3839
interface PromptOption {
3940
prompt: string;
@@ -313,6 +314,7 @@ export class EditorToolbar implements OnInit {
313314
MatButtonModule,
314315
CommonModule,
315316
CodeMirrorRawComponent,
317+
MatProgressBarModule,
316318
],
317319
})
318320
class EditorSendPromptProgressDialog {

0 commit comments

Comments
 (0)