Bladeren bron

Stat tree edit (wip)

Vijayakrishnan 3 jaren geleden
bovenliggende
commit
51a68fdd4e

+ 1 - 1
app/Http/Controllers/StatTreeController.php

@@ -466,7 +466,7 @@ class StatTreeController extends Controller
                 '<span class="ml-2 text-secondary line-count-label">(' .
                 (is_null($line->last_refresh_count) ? '…' :
                     ($line->last_refresh_count === -1 ?
-                        '<span class="text-danger text-sm font-weight-bold"><i class="fa fa-exclamation-triangle"></i> Query Error</span>' :
+                        '<span class="text-danger text-sm font-weight-bold"><i class="fa fa-exclamation-triangle"></i> Query error / missing arg values</span>' :
                         $line->last_refresh_count)) .
                 ')</span>',
             "state" => [

+ 5 - 2
resources/views/app/stat-tree/stat-trees/sub/edit.blade.php

@@ -777,8 +777,9 @@
                                         }, function (response) {
                                             if(!hasResponseError(response)) {
                                                 toastr.success('All changes saved!');
-                                                StatTree.setDirty(false);
-                                                StatTree.load();
+                                                /*StatTree.setDirty(false);
+                                                StatTree.load();*/
+                                                fastReload();
                                             }
                                         }, 'json');
                                     }, 0);
@@ -955,6 +956,8 @@
                                         }
                                     }
 
+                                    initMoes();
+
                                 },
                             };