Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

mobile: fix publish button hidden on tablet

Ammar Ahmedf9db4d49b11e
diff --git a/apps/mobile/app/components/properties/items.js b/apps/mobile/app/components/properties/items.js
index e5adea536..6fce5846e 100644
--- a/apps/mobile/app/components/properties/items.js
+++ b/apps/mobile/app/components/properties/items.js
@@ -175,12 +175,6 @@ export const Items = ({ item, buttons, close }) => {
"lock-unlock"
];
- const topBarItems = data
- .filter((item) => topBarItemsList.indexOf(item.id) > -1)
- .sort((a, b) =>
- topBarItemsList.indexOf(a.id) > topBarItemsList.indexOf(b.id) ? 1 : -1
- );
-
const bottomBarItemsList = [
"notebooks",
"add-reminder",
@@ -202,6 +196,12 @@ export const Items = ({ item, buttons, close }) => {
bottomBarItemsList.splice(4, 0, "publish");
}
+ const topBarItems = data
+ .filter((item) => topBarItemsList.indexOf(item.id) > -1)
+ .sort((a, b) =>
+ topBarItemsList.indexOf(a.id) > topBarItemsList.indexOf(b.id) ? 1 : -1
+ );
+
const bottomGridItems = data
.filter((item) => bottomBarItemsList.indexOf(item.id) > -1)
.sort((a, b) =>