Skip to content

Commit

Permalink
Add the Mode column in the main options page. #206
Browse files Browse the repository at this point in the history
  • Loading branch information
Woundorf committed Nov 28, 2017
1 parent 1a036b1 commit f85770d
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions options/options.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,18 @@ var gridOptions = {
headerName: browser.i18n.getMessage("list.outputHeader"),
valueGetter: (params) => params.data.substitutions.length > 0 ? params.data.substitutions[0].output : ""
},
{
headerName: browser.i18n.getMessage("options.group.mode"),
field: "mode",
cellRenderer(params) { // TODO improve (less hardcoding)
switch (Number(params.value)) {
case 0: return browser.i18n.getMessage("options.group.mode.autoAndManual");
case 1: return browser.i18n.getMessage("options.group.mode.auto");
case 2: return browser.i18n.getMessage("options.group.mode.manual");
default: return params.value;
}
}
},
{
headerName: "",
width: 48,
Expand Down

0 comments on commit f85770d

Please sign in to comment.