Project

General

Profile

« Previous | Next » 

Revision 60880

[Admin | New-UI]: Criteria add loading on save and remove redirection on successfull save

View differences:

criteria.component.ts
194 194
  
195 195
  save() {
196 196
    if (this.selectionCriteria.valid) {
197
      this.loading = true;
197 198
      this.dataProvider.selectioncriteria = this.parseForm(this.selectionCriteria.value);
198 199
      this.manageCommunityContentProvidersService.saveContentProvider(this.properties, this.dataProvider).subscribe(() => {
200
        this.reset();
201
        this.loading = false;
199 202
        UIkit.notification('Filters has been <b>successfully updated</b>', {
200 203
          status: 'success',
201 204
          timeout: 6000,
202 205
          pos: 'bottom-right'
203 206
        });
204
        this.router.navigate(['../'], {relativeTo: this.route});
205 207
      });
206 208
    } else {
207 209
      UIkit.notification('An error has been occurred. Try again later!', {

Also available in: Unified diff