Only allow importing data locally
parent
a5f78e59b0
commit
35cc37deb6
|
@ -114,11 +114,13 @@ export default class MenuUiHandler extends MessageUiHandler {
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
manageDataOptions.push({
|
if (Utils.isLocal) {
|
||||||
label: 'Import Session',
|
manageDataOptions.push({
|
||||||
handler: () => confirmSlot('Select a slot to import to.', () => true, slotId => this.scene.gameData.importData(GameDataType.SESSION, slotId)),
|
label: 'Import Session',
|
||||||
keepOpen: true
|
handler: () => confirmSlot('Select a slot to import to.', () => true, slotId => this.scene.gameData.importData(GameDataType.SESSION, slotId)),
|
||||||
});
|
keepOpen: true
|
||||||
|
});
|
||||||
|
}
|
||||||
manageDataOptions.push({
|
manageDataOptions.push({
|
||||||
label: 'Export Session',
|
label: 'Export Session',
|
||||||
handler: () => {
|
handler: () => {
|
||||||
|
@ -138,11 +140,13 @@ export default class MenuUiHandler extends MessageUiHandler {
|
||||||
},
|
},
|
||||||
keepOpen: true
|
keepOpen: true
|
||||||
});
|
});
|
||||||
manageDataOptions.push({
|
if (Utils.isLocal) {
|
||||||
label: 'Import Data',
|
manageDataOptions.push({
|
||||||
handler: () => this.scene.gameData.importData(GameDataType.SYSTEM),
|
label: 'Import Data',
|
||||||
keepOpen: true
|
handler: () => this.scene.gameData.importData(GameDataType.SYSTEM),
|
||||||
});
|
keepOpen: true
|
||||||
|
});
|
||||||
|
}
|
||||||
manageDataOptions.push(
|
manageDataOptions.push(
|
||||||
{
|
{
|
||||||
label: 'Export Data',
|
label: 'Export Data',
|
||||||
|
|
Loading…
Reference in New Issue