Usunięto blokowanie pobierania/kopiowania składu

This commit is contained in:
2022-11-09 12:31:00 +01:00
parent 92b8aab99f
commit 40bdfa26a8
+6 -6
View File
@@ -220,10 +220,10 @@ export default defineComponent({
}, },
copyToClipboard() { copyToClipboard() {
if (this.stockHasWarnings()) { // if (this.stockHasWarnings()) {
alert('Jazda tym pociągiem jest niezgodna z regulaminem symulatora! Zmień parametry zestawienia!'); // alert('Jazda tym pociągiem jest niezgodna z regulaminem symulatora! Zmień parametry zestawienia!');
return; // return;
} // }
navigator.clipboard.writeText(this.stockString); navigator.clipboard.writeText(this.stockString);
@@ -331,8 +331,8 @@ export default defineComponent({
downloadStock() { downloadStock() {
if (this.store.stockList.length == 0) return alert('Lista pojazdów jest pusta!'); if (this.store.stockList.length == 0) return alert('Lista pojazdów jest pusta!');
if (this.stockHasWarnings()) // if (this.stockHasWarnings())
return alert('Jazda tym pociągiem jest niezgodna z regulaminem symulatora! Zmień parametry zestawienia!'); // return alert('Jazda tym pociągiem jest niezgodna z regulaminem symulatora! Zmień parametry zestawienia!');
const fileName = prompt( const fileName = prompt(
'Nazwij plik, a następnie pobierz do folderu Presets (Dokumenty/TTSK/TrainDriver2):', 'Nazwij plik, a następnie pobierz do folderu Presets (Dokumenty/TTSK/TrainDriver2):',