@@ -8,6 +8,7 @@ import { NavigationHelperService } from 'src/app/service/NavigationHelper.servic
8
8
import { PathSegments } from 'src/app/app-paths' ;
9
9
import { PossibleReferencesService } from 'src/app/service/PossibleReferences.service' ;
10
10
import { StagedProfileService } from 'src/app/service/StagedDataSelectionProfile.service' ;
11
+ import { SnackbarService } from 'src/app/shared/service/Snackbar/Snackbar.service' ;
11
12
12
13
@Component ( {
13
14
selector : 'num-query-editor' ,
@@ -31,7 +32,8 @@ export class QueryEditorComponent implements OnInit, OnDestroy {
31
32
private navigationHelperService : NavigationHelperService ,
32
33
private activatedRoute : ActivatedRoute ,
33
34
private stagedProfileService : StagedProfileService ,
34
- private possibleReferencesService : PossibleReferencesService
35
+ private possibleReferencesService : PossibleReferencesService ,
36
+ private snackbarService : SnackbarService
35
37
) { }
36
38
37
39
ngOnInit ( ) : void {
@@ -55,7 +57,6 @@ export class QueryEditorComponent implements OnInit, OnDestroy {
55
57
}
56
58
57
59
ngOnDestroy ( ) : void {
58
- console . log ( 'destroy' ) ;
59
60
this . routeSubscription ?. unsubscribe ( ) ;
60
61
this . buildProfileSubscription ?. unsubscribe ( ) ;
61
62
}
@@ -80,7 +81,9 @@ export class QueryEditorComponent implements OnInit, OnDestroy {
80
81
this . buildProfileSubscription = this . stagedProfileService
81
82
. buildProfile ( )
82
83
. pipe ( take ( 1 ) )
83
- . subscribe ( ) ;
84
+ . subscribe ( ( ) => {
85
+ this . snackbarService . displayInfoMessage ( 'EDITOR.CONTENT.PROFILE.SNACKBAR.SAVED' ) ;
86
+ } ) ;
84
87
}
85
88
}
86
89
0 commit comments