Merge pull request #245 from mads03dk/master

Close reason, new layout, and exclusion of package-lock.json
This commit is contained in:
Matthias 2021-02-04 19:35:06 +01:00 committed by GitHub
commit 4017b24ad5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 8 additions and 8 deletions

1
.gitignore vendored
View File

@ -1,5 +1,6 @@
.DS_Store
node_modules
package-lock.json
/dist
# local env files

View File

@ -114,7 +114,7 @@ export default class TradeList extends Vue {
openFields: Record<string, string | Function>[] = [{ key: 'actions' }];
// Added to table-fields for historic trades
closedFields: Record<string, string | Function>[] = [{ key: 'close_date', label: 'Close date' }];
closedFields: Record<string, string | Function>[] = [{ key: 'close_date', label: 'Close date' },{key: 'sell_reason', label: 'Close Reason'}];
tableFields: Record<string, string | Function>[] = [
{ key: 'trade_id', label: 'ID' },

View File

@ -34,16 +34,15 @@ export enum LayoutMutations {
setDashboardLayout = 'setDashboardLayout',
setTradingLayout = 'setTradingLayout',
}
// Define default layouts
const DEFAULT_TRADING_LAYOUT: GridItemData[] = [
{ i: TradeLayout.botControls, x: 0, y: 0, w: 3, h: 3 },
{ i: TradeLayout.multiPane, x: 0, y: 3, w: 3, h: 7 },
{ i: TradeLayout.chartView, x: 3, y: 0, w: 9, h: 11 },
{ i: TradeLayout.tradeDetail, x: 0, y: 11, w: 5, h: 6 },
{ i: TradeLayout.openTrades, x: 5, y: 11, w: 7, h: 5 },
{ i: TradeLayout.tradeHistory, x: 5, y: 12, w: 7, h: 6 },
{ i: TradeLayout.logView, x: 0, y: 16, w: 12, h: 3 },
{ i: TradeLayout.multiPane, x: 0, y: 3, w: 3, h: 32 },
{ i: TradeLayout.chartView, x: 3, y: 0, w: 9, h: 14 },
{ i: TradeLayout.tradeDetail, x: 3, y: 19, w: 9, h: 6 },
{ i: TradeLayout.openTrades, x: 3, y: 14, w: 9, h: 5 },
{ i: TradeLayout.tradeHistory, x: 3, y: 25, w: 9, h: 10 },
{ i: TradeLayout.logView, x: 0, y: 35, w: 12, h: 13 },
];
const DEFAULT_DASHBOARD_LAYOUT: GridItemData[] = [