Skip to content

Commit

Permalink
some dummy app tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
miguelcobain committed Apr 21, 2017
1 parent f0e6dbb commit ead6d84
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 4 deletions.
4 changes: 2 additions & 2 deletions tests/dummy/app/controllers/application.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ export default Controller.extend({
],

actions: {
alert(ev, s = 'Hey!') {
alert(s);
alert() {
this.set('dialogOpen', true);
}
}
});
2 changes: 1 addition & 1 deletion tests/dummy/app/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Dummy</title>
<title>ember-paper-expansion-panel</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">

Expand Down
4 changes: 4 additions & 0 deletions tests/dummy/app/styles/app.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@
body {
background: #F6F7FC;
padding: 80px;

@media screen and (max-width: 600px) {
padding: 20px;
}
}

.md-subheader {
Expand Down
16 changes: 15 additions & 1 deletion tests/dummy/app/templates/application.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -107,4 +107,18 @@

{{/each}}

{{/paper-list}}
{{/paper-list}}

{{#if dialogOpen}}
{{#paper-dialog onClose=(action (mut dialogOpen) false)}}
{{#paper-dialog-content}}
<h2 class="md-title">Action</h2>
<p>This is an example action.</p>
{{/paper-dialog-content}}

{{#paper-dialog-actions class="layout-row"}}
<span class="flex"></span>
{{#paper-button primary=true onClick=(action (mut dialogOpen) false)}}OK{{/paper-button}}
{{/paper-dialog-actions}}
{{/paper-dialog}}
{{/if}}

0 comments on commit ead6d84

Please sign in to comment.