Skip to content

Commit 301a980

Browse files
committed
add: positive and negative weight editing support added
1 parent 79e0370 commit 301a980

File tree

2 files changed

+18
-2
lines changed

2 files changed

+18
-2
lines changed

app/pods/components/choice-editor/template.hbs

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,22 @@
2525
{{markdown-to-html choice.description extensions='katex'}}
2626
</div>
2727
</div>
28+
<div class="row align-items-center justify-content-center">
29+
<div class="col-2">
30+
Positive Weight:
31+
</div>
32+
<div class="col-10 input-group">
33+
{{input type="number" class="input-text" placeholder="Positive Weight" value=choice.positiveWeight}}
34+
</div>
35+
</div>
36+
<div class="row justify-conten-center align-items-center">
37+
<div class="col-2">
38+
Negative Weight:
39+
</div>
40+
<div class="col-10 input-group">
41+
{{input type="number" class="input-text" placeholder="Negative Weight" value=choice.negativeWeight}}
42+
</div>
43+
</div>
2844
{{else}}
2945
<h3>{{choice.title}}</h3>
3046
<p>

config/environment.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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: "http://test.troublemaker/callback"
4040
}
41-
ENV.apiHost = 'http://localhost:8080'
41+
ENV.apiHost = 'http://test.troublemakerbackend'
4242
ENV.sentry.development = true
4343
}
4444

0 commit comments

Comments
 (0)