зеркало из https://github.com/Azure/az-iot-bi.git
save user choice to customized dir
This commit is contained in:
Родитель
7588193e6c
Коммит
54666947a3
|
@ -107,12 +107,12 @@ biSetting.isBIEnabled = function (skipCheck, userBiSettingDir) {
|
|||
if (choice === 'y') {
|
||||
console.log('\nYou choose to participate in Microsoft data collection.\n\n');
|
||||
setting.isEnabled = true;
|
||||
biSetting.writeSetting(setting);
|
||||
biSetting.writeSetting(setting, userBiSettingDir);
|
||||
return true;
|
||||
} else {
|
||||
console.log('\nYou choose not to participate in Microsoft data collection.\n\n');
|
||||
setting.isEnabled = false;
|
||||
biSetting.writeSetting(setting);
|
||||
biSetting.writeSetting(setting, userBiSettingDir);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче