Skip to content

Commit

Permalink
chore: remove stack header icon functionality
Browse files Browse the repository at this point in the history
  • Loading branch information
jfmcquade committed Nov 23, 2024
1 parent 809d1f2 commit 07003ae
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 10 deletions.
9 changes: 2 additions & 7 deletions src/app/feature/stack/components/stack/stack.component.html
Original file line number Diff line number Diff line change
@@ -1,13 +1,8 @@
<ion-toolbar>
@if (config.title || config.icon) {
@if (config.title) {
<!-- use mode="ios" to centre title within toolbar -->
<ion-title mode="ios">
@if (config.icon) {
<ion-icon name="rocket-outline"></ion-icon>
}
@if (config.title) {
{{ config.title }}
}
{{ config.title }}
</ion-title>
}
@if (config.showCloseButton) {
Expand Down
1 change: 0 additions & 1 deletion src/app/feature/stack/components/stack/stack.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import { ModalController } from "@ionic/angular";
export interface IStackConfig {
templateName: string;
title?: string;
icon?: string;
showCloseButton?: boolean;
}

Expand Down
3 changes: 1 addition & 2 deletions src/app/feature/stack/stack.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,10 @@ export class StackService extends SyncServiceBase {
const [actionId] = args;
const childActions = {
open: async () => {
const { template, title, icon, show_close_button } = params;
const { template, title, show_close_button } = params;
const stackConfig = {
templateName: template,
title,
icon,
showCloseButton: show_close_button,
};
this.pushStack(stackConfig);
Expand Down

0 comments on commit 07003ae

Please sign in to comment.