message: Show success snackbar after updateItem
  Migrate to SnackBarService
diff: @@ -3,7 +3,7 @@ import {IConfig} from '../../../../../../../shared/models/IConfig';
  import {ConfigService} from '../../services/data.service';
  import {MarkdownService} from '../../services/markdown.service';
  import {errorCodes} from '../../../../../../../api/src/config/errorCodes';
  -import {MatSnackBar} from '@angular/material';
  +import {SnackBarService} from '../../services/snack-bar.service';
  import {ActivatedRoute} from '@angular/router';
  @Component({
  @@ -20,8 +20,9 @@ export class AdminMarkdownEditComponent implements OnInit {
  constructor(private service: ConfigService,
  private mdService: MarkdownService,
  - private snackBar: MatSnackBar,
  - private route: ActivatedRoute) { }
  + private snackBar: SnackBarService,
  + private route: ActivatedRoute) {
  + }
  ngOnInit() {
  this.route.queryParams.subscribe(params => {
  @@ -39,15 +40,17 @@ export class AdminMarkdownEditComponent implements OnInit {
  this.text = '';
  }
  }
  - onSave(markdown: string ) {
  +
  + async onSave(markdown: string) {
  try {
  - void this.service.updateItem({_id: this.type, data: markdown});
  - this.snackBar.open( this.headingType + ' saved', '', {duration: 3000});
  - } catch (error) {
  - this.snackBar.open(errorCodes.save.couldNotSaveImprint.text, '', {duration: 3000});
  + await this.service.updateItem({_id: this.type, data: markdown});
  + this.snackBar.open(this.headingType + ' saved');
  + } catch (err) {
  + this.snackBar.open(errorCodes.save.couldNotSaveImprint.text);
  }
  void this.loadConfig();
  }
  +
  onCancel() {
  void this.loadConfig();
  }
  