浏览代码

fix spinner showing when hash is not set

Pi 1 月之前
父节点
当前提交
2d7f6fc40d
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      util-sqlpage/upload/index.sql

+ 1 - 1
util-sqlpage/upload/index.sql

@@ -28,7 +28,7 @@ SET ":content" = CAST($rowid AS INTEGER);
 SELECT 'dynamic' AS component, sqlpage.run_sql('sqlpage/theme.sql') AS properties
 --WHERE $rowid IS NULL
 ;
-SET ":spinner" = :hash IS NOT NULL OR :content IS NOT NULL OR $rowid IS NOT NULL; --COALESCE($rowid, '') <> '';
+SET ":spinner" = COALESCE(:hash, '') <> '' OR :content IS NOT NULL OR $rowid IS NOT NULL; --COALESCE($rowid, '') <> '';
 SELECT 'loader-start' AS component
 , 'lg' AS size
 , :tabler_color AS color