Skip to content
This repository was archived by the owner on May 20, 2022. It is now read-only.

Commit

Permalink
fix(schedule): place the cancel button on the end in toolbar for md mode
Browse files Browse the repository at this point in the history
  • Loading branch information
brandyscarney committed Mar 15, 2018
1 parent a5e3fdf commit ba93aac
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/components/page-schedule-filter/page-schedule-filter.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import '@ionic/core';
import '@stencil/core';

import { Component, Element, Listen, State } from '@stencil/core';
import { Config } from '@ionic/core';
import { Component, Element, Listen, Prop, State } from '@stencil/core';

import { ConferenceData } from '../../providers/conference-data';

Expand All @@ -15,6 +16,8 @@ export class PageScheduleFilter {

@State() tracks: Array<{name: string, isChecked: boolean}> = [];

@Prop({ context: 'config' }) config: Config;

async componentWillLoad() {
// passed in array of track names that should be excluded (unchecked)
// TODO = this.navParams.data.excludedTracks;
Expand Down Expand Up @@ -56,10 +59,12 @@ export class PageScheduleFilter {
}

render() {
const mode = this.config.get('mode');

return [
<ion-header>
<ion-toolbar>
<ion-buttons slot="start">
<ion-buttons slot={mode === 'md' ? 'end' : 'start'}>
<ion-button onClick={() => this.dismiss()}>Cancel</ion-button>
</ion-buttons>

Expand Down

0 comments on commit ba93aac

Please sign in to comment.