Ver Fonte

fixed Dodaj btn label

Piotr Labudda há 7 anos atrás
pai
commit
d74403a989
1 ficheiros alterados com 7 adições e 1 exclusões
  1. 7 1
      tools/Bocian.php.addItemToRaport.js

+ 7 - 1
tools/Bocian.php.addItemToRaport.js

@@ -520,7 +520,13 @@ var P5UI_AddItemToReport = createReactClass({
                         // ReactDOM.unmountComponentAtNode(document.getElementById(FUNCTION_NAME + '__searchBaza'));
                         // swal.close()
                     }
-                }, "Dodaj firmę") // TODO:  |> KRS -> firmę, |> KRS Person -> osobę, ....
+                }, "Dodaj " + (
+                  ( ('default_db/BI_audit_KRS_person/BI_audit_KRS_person' === selectedBaza)
+                    || ('default_db/BI_audit_MSIG_person/BI_audit_MSIG_person' === selectedBaza)
+                  )
+                  ? "osobę"
+                  : "firmę"
+                )) // TODO:  |> KRS -> firmę, |> KRS Person -> osobę, ....
             ]),
             ('default_db/BI_audit_KRS/BI_audit_KRS' === selectedBaza && selectedItem) && h(P5UI_AddItemToReport_SelectKrsPerson, {
               krs: selectedItem,