poi-plugin-akashic-records
Advanced tools
Comparing version 6.1.5 to 6.1.6
{ | ||
"name": "poi-plugin-akashic-records", | ||
"version": "6.1.5", | ||
"version": "6.1.6", | ||
"description": "logbook plugin for poi", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -51,8 +51,8 @@ 'use strict'; | ||
const $shiptypes = window.$shipTypes; | ||
const dataItem = []; | ||
dataItem.push(new Date().getTime(), '解体'); | ||
const shipId = body.api_ship_id; | ||
dataItem.push($shiptypes[_ships[shipId].api_stype].api_name, `${_ships[shipId].api_name}(Lv.${_ships[shipId].api_lv})`); | ||
_dataCoManager2.default.saveLog('retirement', dataItem); | ||
this.store.dispatch((0, _actions.addLog)(dataItem, 'retirement')); | ||
let dateTime = new Date().getTime(); | ||
for (const shipId of body.api_ship_id.split(',')) { | ||
const dataItem = [dateTime++, '解体', $shiptypes[_ships[shipId].api_stype].api_name, `${_ships[shipId].api_name}(Lv.${_ships[shipId].api_lv})`]; | ||
_dataCoManager2.default.saveLog('retirement', dataItem); | ||
this.store.dispatch((0, _actions.addLog)(dataItem, 'retirement')); | ||
} | ||
break; | ||
@@ -59,0 +59,0 @@ } |
Sorry, the diff of this file is not supported yet
2733314