Browse Source

remove get method from HttpMethod and default methods

pull/19532/head
Yusuf Çırak 2 years ago
parent
commit
675e1ec2d7
  1. 2
      npm/ng-packs/packages/theme-shared/src/lib/models/toaster.ts
  2. 2
      npm/ng-packs/packages/theme-shared/src/lib/providers/toaster-interceptor.provider.ts

2
npm/ng-packs/packages/theme-shared/src/lib/models/toaster.ts

@ -31,7 +31,7 @@ export namespace Toaster {
enabled: boolean;
}
export type HttpMethod = 'GET' | 'POST' | 'PUT' | 'DELETE' | 'PATCH';
export type HttpMethod = 'POST' | 'PUT' | 'DELETE' | 'PATCH';
export type StatusCode = 200 | 201 | 204 | 400 | 401 | 403 | 404 | 500 | 503 | 504 | 0;
export type Severity = 'neutral' | 'success' | 'info' | 'warning' | 'error';

2
npm/ng-packs/packages/theme-shared/src/lib/providers/toaster-interceptor.provider.ts

@ -4,7 +4,7 @@ import { ToasterInterceptor } from '../interceptors/toaster.interceptor';
import { HTTP_TOASTER_INTERCEPTOR_CONFIG } from '../tokens/toaster-interceptor.token';
import { Toaster } from '../models';
const methods = ['GET', 'POST', 'PUT', 'PATCH', 'DELETE'];
const methods = ['POST', 'PUT', 'PATCH', 'DELETE'];
const defaults: Partial<Toaster.ToasterDefaults> = {
'200': {
message: 'AbpUi::SavedSuccessfully',

Loading…
Cancel
Save