|
|
@ -1,5 +1,5 @@ |
|
|
import { ABP } from '@abp/ng.core'; |
|
|
import { ABP } from '@abp/ng.core'; |
|
|
import { ConfirmationService, Toaster } from '@abp/ng.theme.shared'; |
|
|
import { ConfirmationService, Confirmation } from '@abp/ng.theme.shared'; |
|
|
import { Component, ElementRef, OnInit, ViewChild } from '@angular/core'; |
|
|
import { Component, ElementRef, OnInit, ViewChild } from '@angular/core'; |
|
|
import { FormBuilder, FormControl, FormGroup, Validators } from '@angular/forms'; |
|
|
import { FormBuilder, FormControl, FormGroup, Validators } from '@angular/forms'; |
|
|
import { Select, Store } from '@ngxs/store'; |
|
|
import { Select, Store } from '@ngxs/store'; |
|
|
@ -116,8 +116,8 @@ export class RolesComponent implements OnInit { |
|
|
.warn('AbpIdentity::RoleDeletionConfirmationMessage', 'AbpIdentity::AreYouSure', { |
|
|
.warn('AbpIdentity::RoleDeletionConfirmationMessage', 'AbpIdentity::AreYouSure', { |
|
|
messageLocalizationParams: [name], |
|
|
messageLocalizationParams: [name], |
|
|
}) |
|
|
}) |
|
|
.subscribe((status: Toaster.Status) => { |
|
|
.subscribe((status: Confirmation.Status) => { |
|
|
if (status === Toaster.Status.confirm) { |
|
|
if (status === Confirmation.Status.confirm) { |
|
|
this.store.dispatch(new DeleteRole(id)).subscribe(() => this.get()); |
|
|
this.store.dispatch(new DeleteRole(id)).subscribe(() => this.get()); |
|
|
} |
|
|
} |
|
|
}); |
|
|
}); |
|
|
|