mirror of
https://github.com/KoboldAI/KoboldAI-Client.git
synced 2025-06-05 21:59:24 +02:00
Disable "Download Story as Plaintext" when disconnected
This is to help avoid confusion for people who want to backup their current story after being disconnected from the server.
This commit is contained in:
@@ -2367,7 +2367,9 @@ $(document).ready(function(){
|
|||||||
});
|
});
|
||||||
|
|
||||||
button_downloadtxt.on("click", function(ev) {
|
button_downloadtxt.on("click", function(ev) {
|
||||||
|
if(connected) {
|
||||||
downloadStory('plaintext');
|
downloadStory('plaintext');
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
button_load.on("click", function(ev) {
|
button_load.on("click", function(ev) {
|
||||||
|
@@ -17,7 +17,7 @@
|
|||||||
<script src="static/bootstrap.min.js"></script>
|
<script src="static/bootstrap.min.js"></script>
|
||||||
<script src="static/bootstrap-toggle.min.js"></script>
|
<script src="static/bootstrap-toggle.min.js"></script>
|
||||||
<script src="static/rangy-core.min.js"></script>
|
<script src="static/rangy-core.min.js"></script>
|
||||||
<script src="static/application.js?ver=1.16.4r"></script>
|
<script src="static/application.js?ver=1.16.4s"></script>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<input type="file" id="remote-save-select" accept="application/json" style="display:none">
|
<input type="file" id="remote-save-select" accept="application/json" style="display:none">
|
||||||
@@ -47,7 +47,7 @@
|
|||||||
<a class="dropdown-item" href="#" id="btn_saveas">Save As</a>
|
<a class="dropdown-item" href="#" id="btn_saveas">Save As</a>
|
||||||
<a class="dropdown-item" href="#" id="btn_savetofile">Save To File...</a>
|
<a class="dropdown-item" href="#" id="btn_savetofile">Save To File...</a>
|
||||||
<a class="dropdown-item always-available" href="#" id="btn_download">Download Story as JSON</a>
|
<a class="dropdown-item always-available" href="#" id="btn_download">Download Story as JSON</a>
|
||||||
<a class="dropdown-item always-available" href="#" id="btn_downloadtxt">Download Story as Plaintext</a>
|
<a class="dropdown-item" href="#" id="btn_downloadtxt">Download Story as Plaintext</a>
|
||||||
</div>
|
</div>
|
||||||
</li>
|
</li>
|
||||||
<li class="nav-item dropdown">
|
<li class="nav-item dropdown">
|
||||||
|
Reference in New Issue
Block a user