File tree Expand file tree Collapse file tree 3 files changed +12
-1
lines changed Expand file tree Collapse file tree 3 files changed +12
-1
lines changed Original file line number Diff line number Diff line change 11# See https://help.github.com/ignore-files/ for more about ignoring files.
22
3+ # WebStorm local user files
4+ /.idea /
5+
36# compiled output
47/dist /
58/tmp /
Original file line number Diff line number Diff line change @@ -3,6 +3,11 @@ import Controller from '@ember/controller';
33export default Controller . extend ( {
44 queryParams : [ 'page' , 'limit' ] ,
55 page : 1 ,
6- limit : 10
6+ limit : 10 ,
7+ actions : {
8+ deleteQuestion ( question ) {
9+ question . destroyRecord ( )
10+ }
11+ }
712
813} ) ;
Original file line number Diff line number Diff line change 1414 <p class =" card-text" >
1515 {{ question.description }}
1616 </p >
17+ <div class =" button-solid" >
18+ <button {{ action " deleteQuestion" question }} >Delete</button >
19+ </div >
1720 <div class =" button-solid" >
1821 {{ #link-to ' questions.id' question.id class =" white" }}
1922 <button >Edit</button >
You can’t perform that action at this time.
0 commit comments