Only allow importing data locally

pull/31/head
Flashfyre 2024-04-03 23:47:27 -04:00
parent a5f78e59b0
commit 35cc37deb6
1 changed files with 14 additions and 10 deletions

View File

@ -114,11 +114,13 @@ export default class MenuUiHandler extends MessageUiHandler {
}); });
}; };
if (Utils.isLocal) {
manageDataOptions.push({ manageDataOptions.push({
label: 'Import Session', label: 'Import Session',
handler: () => confirmSlot('Select a slot to import to.', () => true, slotId => this.scene.gameData.importData(GameDataType.SESSION, slotId)), handler: () => confirmSlot('Select a slot to import to.', () => true, slotId => this.scene.gameData.importData(GameDataType.SESSION, slotId)),
keepOpen: true 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
}); });
if (Utils.isLocal) {
manageDataOptions.push({ manageDataOptions.push({
label: 'Import Data', label: 'Import Data',
handler: () => this.scene.gameData.importData(GameDataType.SYSTEM), handler: () => this.scene.gameData.importData(GameDataType.SYSTEM),
keepOpen: true keepOpen: true
}); });
}
manageDataOptions.push( manageDataOptions.push(
{ {
label: 'Export Data', label: 'Export Data',