File tree Expand file tree Collapse file tree 4 files changed +20
-4
lines changed
pods/components/question-editor Expand file tree Collapse file tree 4 files changed +20
-4
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,5 @@ import DS from "ember-data";
33export default DS . Model . extend ( {
44 title : DS . attr ( ) ,
55 description : DS . attr ( ) ,
6- positiveWeight : DS . attr ( ) ,
7- negativeWeight : DS . attr ( ) ,
86 question : DS . belongsTo ( 'question' )
97} )
Original file line number Diff line number Diff line change @@ -5,6 +5,8 @@ export default DS.Model.extend({
55 description : DS . attr ( ) ,
66 explanation : DS . attr ( ) ,
77 difficulty : DS . attr ( ) ,
8+ positiveScore : DS . attr ( ) ,
9+ negativeScore : DS . attr ( ) ,
810 user : DS . belongsTo ( 'user' ) ,
911 choices : DS . hasMany ( 'choice' ) ,
1012 tags : DS . hasMany ( 'tag' )
Original file line number Diff line number Diff line change 4242 </div >
4343 </div >
4444
45+ <div class =" row justiy-content-center align-items-center" >
46+ <div class =" col-1" >
47+ <label >Positive Score</label >
48+ </div >
49+ <div class =" col-5" >
50+ {{ input type =" number" class =" input-text" value =question.positiveScore }}
51+ </div >
52+
53+ <div class =" col-1" >
54+ <label >Negative Score</label >
55+ </div >
56+ <div class =" col-5" >
57+ {{ input type =" number" class =" input-text" value =question.negativeScore }}
58+ </div >
59+ </div >
60+
4561 {{ #unless question.isNew }}
4662
4763 <div class =" button-dashed add-choice" >
Original file line number Diff line number Diff line change @@ -36,9 +36,9 @@ module.exports = function(environment) {
3636 // ENV.APP.LOG_VIEW_LOOKUPS = true;
3737 ENV . ONEAUTH = {
3838 clientID : "2636937167" ,
39- callbackURL : "http://localhost:4200/callback"
39+ callbackURL : process . env . ONEAUTH_CALLBACK_URL || "http://localhost:4200/callback"
4040 }
41- ENV . apiHost = 'http://localhost:8080'
41+ ENV . apiHost = process . env . API_HOST || 'http://localhost:8080'
4242 ENV . sentry . development = true
4343 }
4444
You can’t perform that action at this time.
0 commit comments