diff --git a/README.md b/README.md
index 20ce6d7..06d4f77 100644
--- a/README.md
+++ b/README.md
@@ -32,7 +32,7 @@ Once installed, you will see an option to create a Draw.io diagram/whiteboard fr
## Installation ##
1. Copy Nextcloud draw.io integration app ("drawio" directory) to your Nextcloud server into the /apps/ directory
2. Go to "Apps" > "+ Apps" > "Not Enabled" and _Enable_ the **Draw.io** application
-3. Go to "Admin settings > Additional settings" ( /index.php/settings/admin/additional ) and click the "Save" button to register MIME types.
+3. Go to "Admin settings > Draw.io" ( /index.php/settings/admin/drawio ) and click the "Save" button to register MIME types.
## Known Issues ##
diff --git a/drawio/CHANGELOG.md b/drawio/CHANGELOG.md
index c3fe9fe..2ce58dc 100644
--- a/drawio/CHANGELOG.md
+++ b/drawio/CHANGELOG.md
@@ -1,5 +1,10 @@
# Change Log
+## 2.0.2
+
+- Fixed preview bug (issue #14 and #16)
+- Added draw.io own section to the admin settings (issue #15)
+
## 2.0.1
- Fixed saving in offline mode and draw.io versions < 20.8.0
diff --git a/drawio/appinfo/info.xml b/drawio/appinfo/info.xml
index 98cd290..eeedea1 100644
--- a/drawio/appinfo/info.xml
+++ b/drawio/appinfo/info.xml
@@ -5,7 +5,7 @@
Draw.io
Draw.io integration app
- 2.0.1
+ 2.0.2
agpl
JGraph Ltd
Drawio
@@ -24,6 +24,7 @@
OCA\Drawio\Settings\Admin
+ OCA\Drawio\Settings\Section
diff --git a/drawio/img/app-dark.svg b/drawio/img/app-dark.svg
new file mode 100644
index 0000000..3479f54
--- /dev/null
+++ b/drawio/img/app-dark.svg
@@ -0,0 +1,18 @@
+
+
diff --git a/drawio/lib/Preview/DrawioPreview.php b/drawio/lib/Preview/DrawioPreview.php
index 41803bb..9cf16ff 100644
--- a/drawio/lib/Preview/DrawioPreview.php
+++ b/drawio/lib/Preview/DrawioPreview.php
@@ -65,7 +65,7 @@ public function getMimeType(): string
public function isAvailable(FileInfo $file): bool
{
$prevFile = $this->getPreviewFile($file->getId());
- return ($this->appConfig->getPreviews() === 'yes') && $prevFile !== false &&
+ return ($this->appConfig->GetPreviews() === 'yes') && $prevFile !== false &&
$prevFile->getMtime() >= $file->getMtime();
}
@@ -73,7 +73,7 @@ public function getThumbnail($path, $maxX, $maxY, $scalingup, $view)
{
$thumbnail = $this->getPreviewFile($view->getFileInfo($path)->getId());
- if ($this->appConfig->getPreviews() === 'no' || $thumbnail === false) {
+ if ($this->appConfig->GetPreviews() === 'no' || $thumbnail === false) {
return false;
}
diff --git a/drawio/lib/Settings/Admin.php b/drawio/lib/Settings/Admin.php
index c247fc9..872bd86 100644
--- a/drawio/lib/Settings/Admin.php
+++ b/drawio/lib/Settings/Admin.php
@@ -32,7 +32,7 @@ public function getForm()
public function getSection()
{
- return "additional";
+ return "drawio";
}
public function getPriority()
diff --git a/drawio/lib/Settings/Section.php b/drawio/lib/Settings/Section.php
new file mode 100644
index 0000000..1e997e4
--- /dev/null
+++ b/drawio/lib/Settings/Section.php
@@ -0,0 +1,35 @@
+url = $url;
+ $this->l10n = $l10n;
+ }
+
+ public function getID() {
+ return 'drawio';
+ }
+
+ public function getName() {
+ return $this->l10n->t('Draw.io');
+ }
+
+ public function getPriority() {
+ return 75;
+ }
+
+ public function getIcon() {
+ return $this->url->imagePath('drawio', 'app-dark.svg');
+ }
+}