Skip to content

Commit

Permalink
fix(admin-ui): Correct mis-spelled "secondary" type in ModalService
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelbromley committed Dec 17, 2019
1 parent 6e27c37 commit 9600c42
Show file tree
Hide file tree
Showing 12 changed files with 13 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 },
],
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 },
],
})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 },
],
})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 },
],
})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 },
],
})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 },
],
})
Expand Down Expand Up @@ -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 },
],
})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 },
],
})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 },
],
})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 },
],
})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 },
],
})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 },
],
})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 9600c42

Please sign in to comment.