Sfoglia il codice sorgente

Enabled import at Sandtorm. Keep there warning about possible data loss bug.

Lauri Ojansivu 7 anni fa
parent
commit
22923d08af
1 ha cambiato i file con 8 aggiunte e 11 eliminazioni
  1. 8 11
      client/components/import/import.jade

+ 8 - 11
client/components/import/import.jade

@@ -11,17 +11,14 @@ template(name="import")
     +Template.dynamic(template=currentTemplate)
     +Template.dynamic(template=currentTemplate)
 
 
 template(name="importTextarea")
 template(name="importTextarea")
-  unless isSandstorm
-    form
-      p: label(for='import-textarea') {{_ instruction}}
-      textarea.js-import-json(placeholder="{{_ 'import-json-placeholder'}}" autofocus)
-        | {{jsonText}}
-      if isSandstorm
-        p.warning {{_ 'import-sandstorm-warning'}}
-      input.primary.wide(type="submit" value="{{_ 'import'}}")
-  if isSandstorm
-    p.warning 'Import disabled because of data loss bug https://github.com/wekan/wekan/issues/1430'
-
+  form
+    p: label(for='import-textarea') {{_ instruction}}
+    textarea.js-import-json(placeholder="{{_ 'import-json-placeholder'}}" autofocus)
+      | {{jsonText}}
+    if isSandstorm
+      p.warning {{_ 'import-sandstorm-warning'}}
+      p.warning 'IMPORT CAN CAUSE DATA LOSS OF THIS GRAIN BUG https://github.com/wekan/wekan/issues/1430'
+    input.primary.wide(type="submit" value="{{_ 'import'}}")
 
 
 template(name="importMapMembers")
 template(name="importMapMembers")
   h2 {{_ 'import-map-members'}}
   h2 {{_ 'import-map-members'}}