@@ -17,13 +17,14 @@ namespace Documents {
namespace Documents\Files {
use Elements\Head;
+ use Elements\Link;
use Elements\Script;
use Elements\SimpleBody;
class FilesHead extends Head {
protected function initSources() {
- $this->loadBootstrap();
+ $this->addCSS(Link::BOOTSTRAP);
$this->loadFontawesome();
}
@@ -1,6 +1,6 @@
<?php
-define("WEBBASE_VERSION", "1.2.0");
+define("WEBBASE_VERSION", "1.2.1");
function getProtocol() {
return (!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off' || $_SERVER['SERVER_PORT'] == 443) ? "https" : "http";
@@ -11,7 +11,7 @@
"react-draft-wysiwyg": "^1.14.5",
"react-dropzone": "^11.2.4",
"react-router-dom": "^5.2.0",
- "react-scripts": "^3.4.4",
+ "react-scripts": "^4.0.3",
"react-tooltip": "^4.2.13"
},
"scripts": {
@@ -41,7 +41,7 @@ export function TokenList(props) {
function fetchTokens() {
api.listTokens().then((res) => {
- if (res) {
+ if (res.success) {
setTokens(res.tokens);
} else {
pushAlert(res, "Error fetching tokens");