Browse Source

fix(admin-ui): Correct mis-spelled "secondary" type in ModalService

Michael Bromley 6 years ago
parent
commit
9600c420c3

+ 1 - 1
packages/admin-ui/src/app/catalog/components/collection-list/collection-list.component.ts

@@ -75,7 +75,7 @@ export class CollectionListComponent implements OnInit {
                             ? _('catalog.confirm-delete-collection-and-children-body')
                             : undefined,
                         buttons: [
-                            { type: 'seconday', label: _('common.cancel') },
+                            { type: 'secondary', label: _('common.cancel') },
                             { type: 'danger', label: _('common.delete'), returnValue: true },
                         ],
                     });

+ 1 - 1
packages/admin-ui/src/app/catalog/components/facet-detail/facet-detail.component.ts

@@ -251,7 +251,7 @@ export class FacetDetailComponent extends BaseDetailComponent<FacetWithValues.Fr
                 title: _('catalog.confirm-delete-facet-value'),
                 body: message,
                 buttons: [
-                    { type: 'seconday', label: _('common.cancel') },
+                    { type: 'secondary', label: _('common.cancel') },
                     { type: 'danger', label: _('common.delete'), returnValue: true },
                 ],
             })

+ 1 - 1
packages/admin-ui/src/app/catalog/components/facet-list/facet-list.component.ts

@@ -74,7 +74,7 @@ export class FacetListComponent extends BaseListComponent<GetFacetList.Query, Ge
                 title: _('catalog.confirm-delete-facet'),
                 body: message,
                 buttons: [
-                    { type: 'seconday', label: _('common.cancel') },
+                    { type: 'secondary', label: _('common.cancel') },
                     { type: 'danger', label: _('common.delete'), returnValue: true },
                 ],
             })

+ 1 - 1
packages/admin-ui/src/app/catalog/components/product-detail/product-detail.component.ts

@@ -187,7 +187,7 @@ export class ProductDetailComponent extends BaseDetailComponent<ProductWithVaria
             .dialog({
                 title: _('catalog.remove-product-from-channel'),
                 buttons: [
-                    { type: 'seconday', label: _('common.cancel') },
+                    { type: 'secondary', label: _('common.cancel') },
                     { type: 'danger', label: _('catalog.remove-from-channel'), returnValue: true },
                 ],
             })

+ 1 - 1
packages/admin-ui/src/app/catalog/components/product-list/product-list.component.ts

@@ -117,7 +117,7 @@ export class ProductListComponent
             .dialog({
                 title: _('catalog.confirm-delete-product'),
                 buttons: [
-                    { type: 'seconday', label: _('common.cancel') },
+                    { type: 'secondary', label: _('common.cancel') },
                     { type: 'danger', label: _('common.delete'), returnValue: true },
                 ],
             })

+ 2 - 2
packages/admin-ui/src/app/catalog/components/product-variants-editor/product-variants-editor.component.ts

@@ -162,7 +162,7 @@ export class ProductVariantsEditorComponent implements OnInit, DeactivateAware {
             .dialog({
                 title: _('catalog.confirm-delete-product-variant'),
                 buttons: [
-                    { type: 'seconday', label: _('common.cancel') },
+                    { type: 'secondary', label: _('common.cancel') },
                     { type: 'danger', label: _('common.delete'), returnValue: true },
                 ],
             })
@@ -225,7 +225,7 @@ export class ProductVariantsEditorComponent implements OnInit, DeactivateAware {
                     title: _('catalog.confirm-adding-options-delete-default-title'),
                     body: _('catalog.confirm-adding-options-delete-default-body'),
                     buttons: [
-                        { type: 'seconday', label: _('common.cancel') },
+                        { type: 'secondary', label: _('common.cancel') },
                         { type: 'danger', label: _('catalog.delete-default-variant'), returnValue: true },
                     ],
                 })

+ 1 - 1
packages/admin-ui/src/app/marketing/components/promotion-list/promotion-list.component.ts

@@ -39,7 +39,7 @@ export class PromotionListComponent extends BaseListComponent<
             .dialog({
                 title: _('catalog.confirm-delete-promotion'),
                 buttons: [
-                    { type: 'seconday', label: _('common.cancel') },
+                    { type: 'secondary', label: _('common.cancel') },
                     { type: 'danger', label: _('common.delete'), returnValue: true },
                 ],
             })

+ 1 - 1
packages/admin-ui/src/app/settings/components/channel-list/channel-list.component.ts

@@ -39,7 +39,7 @@ export class ChannelListComponent {
             .dialog({
                 title: _('catalog.confirm-delete-channel'),
                 buttons: [
-                    { type: 'seconday', label: _('common.cancel') },
+                    { type: 'secondary', label: _('common.cancel') },
                     { type: 'danger', label: _('common.delete'), returnValue: true },
                 ],
             })

+ 1 - 1
packages/admin-ui/src/app/settings/components/country-list/country-list.component.ts

@@ -157,7 +157,7 @@ export class CountryListComponent implements OnInit, OnDestroy {
             .dialog({
                 title: _('catalog.confirm-delete-country'),
                 buttons: [
-                    { type: 'seconday', label: _('common.cancel') },
+                    { type: 'secondary', label: _('common.cancel') },
                     { type: 'danger', label: _('common.delete'), returnValue: true },
                 ],
             })

+ 1 - 1
packages/admin-ui/src/app/settings/components/role-list/role-list.component.ts

@@ -52,7 +52,7 @@ export class RoleListComponent extends BaseListComponent<GetRoles.Query, GetRole
             .dialog({
                 title: _('settings.confirm-delete-role'),
                 buttons: [
-                    { type: 'seconday', label: _('common.cancel') },
+                    { type: 'secondary', label: _('common.cancel') },
                     { type: 'danger', label: _('common.delete'), returnValue: true },
                 ],
             })

+ 1 - 1
packages/admin-ui/src/app/settings/components/shipping-method-list/shipping-method-list.component.ts

@@ -71,7 +71,7 @@ export class ShippingMethodListComponent
             .dialog({
                 title: _('catalog.confirm-delete-shipping-method'),
                 buttons: [
-                    { type: 'seconday', label: _('common.cancel') },
+                    { type: 'secondary', label: _('common.cancel') },
                     { type: 'danger', label: _('common.delete'), returnValue: true },
                 ],
             })

+ 1 - 1
packages/admin-ui/src/app/shared/providers/modal/modal.service.ts

@@ -22,7 +22,7 @@ export interface Dialog<R = any> {
 
 export interface DialogButtonConfig<T> {
     label: string;
-    type: 'seconday' | 'primary' | 'danger';
+    type: 'secondary' | 'primary' | 'danger';
     returnValue?: T;
 }