mirror of
https://github.com/smogon/pokemon-showdown-client.git
synced 2026-09-29 14:23:26 -05:00
Desktop client: Button to reload teams
This commit is contained in:
@@ -165,7 +165,7 @@
|
||||
buf += '</ul>';
|
||||
|
||||
if (window.nodewebkit) {
|
||||
buf += '<button name="revealFolder"><i class="icon-folder-open"></i> Reveal teams folder</button> <button name="backup"><i class="icon-upload-alt"></i> Backup/Restore all teams</button>';
|
||||
buf += '<button name="revealFolder"><i class="icon-folder-open"></i> Reveal teams folder</button> <button name="reloadTeamsFolder"><i class="icon-refresh"></i> Reload teams files</button> <button name="backup"><i class="icon-upload-alt"></i> Backup/Restore all teams</button>';
|
||||
} else {
|
||||
buf += '<button name="backup"><i class="icon-upload-alt"></i> Backup/Restore all teams</button>';
|
||||
|
||||
@@ -180,6 +180,9 @@
|
||||
revealFolder: function() {
|
||||
Storage.revealFolder();
|
||||
},
|
||||
reloadTeamsFolder: function() {
|
||||
Storage.nwLoadTeams();
|
||||
},
|
||||
edit: function(i) {
|
||||
var i = +i;
|
||||
this.curTeam = teams[i];
|
||||
|
||||
Reference in New Issue
Block a user