@@ -1170,6 +1170,7 @@ window.createVueInstance = function(element) {
11701170 startBackup : function ( button , plants , gallery , tasks , inventory , calendar ) {
11711171 let oldText = button . innerHTML ;
11721172 button . innerHTML = '<i class="fas fa-spinner fa-spin"></i> ' + oldText ;
1173+ button . disabled = true ;
11731174
11741175 window . vue . ajaxRequest ( 'post' , window . location . origin + '/export/start' , {
11751176 plants : plants ,
@@ -1179,6 +1180,7 @@ window.createVueInstance = function(element) {
11791180 calendar : calendar
11801181 } , function ( response ) {
11811182 button . innerHTML = oldText ;
1183+ button . disabled = false ;
11821184
11831185 if ( response . code == 200 ) {
11841186 let export_result = document . getElementById ( 'export-result' ) ;
@@ -1195,6 +1197,7 @@ window.createVueInstance = function(element) {
11951197 startImport : function ( button , file , locations , plants , gallery , tasks , inventory , calendar ) {
11961198 let oldText = button . innerHTML ;
11971199 button . innerHTML = '<i class="fas fa-spinner fa-spin"></i> ' + oldText ;
1200+ button . disabled = true ;
11981201
11991202 let formData = new FormData ( ) ;
12001203 formData . append ( 'import' , file . files [ 0 ] ) ;
@@ -1207,6 +1210,7 @@ window.createVueInstance = function(element) {
12071210
12081211 window . vue . ajaxRequest ( 'post' , window . location . origin + '/import/start' , formData , function ( response ) {
12091212 button . innerHTML = oldText ;
1213+ button . disabled = false ;
12101214
12111215 if ( response . code == 200 ) {
12121216 let import_result = document . getElementById ( 'import-result' ) ;
0 commit comments