mirror of
https://github.com/bitfireAT/davx5-ose.git
synced 2025-12-23 23:17:50 -05:00
Link to Managed DAVx5 in navigation drawer (bitfireAT/davx5#633)
Added managed drawer entry
This commit is contained in:
@@ -36,6 +36,8 @@ object Constants {
|
||||
const val MANUAL_PATH_WEBDAV_PUSH = "webdav_push.html"
|
||||
const val MANUAL_PATH_WEBDAV_MOUNTS = "webdav_mounts.html"
|
||||
|
||||
const val MANAGED_PATH = "organizations"
|
||||
|
||||
val COMMUNITY_URL = "https://github.com/bitfireAT/davx5-ose/discussions".toUri()
|
||||
|
||||
val FEDIVERSE_HANDLE = "@davx5app@fosstodon.org"
|
||||
|
||||
@@ -8,6 +8,7 @@ import androidx.compose.foundation.layout.Column
|
||||
import androidx.compose.material.icons.Icons
|
||||
import androidx.compose.material.icons.automirrored.filled.HelpCenter
|
||||
import androidx.compose.material.icons.filled.CloudOff
|
||||
import androidx.compose.material.icons.filled.CorporateFare
|
||||
import androidx.compose.material.icons.filled.Forum
|
||||
import androidx.compose.material.icons.filled.Home
|
||||
import androidx.compose.material.icons.filled.Info
|
||||
@@ -104,6 +105,18 @@ open class OseAccountsDrawerHandler @Inject constructor(): AccountsDrawerHandler
|
||||
)
|
||||
}
|
||||
)
|
||||
MenuEntry(
|
||||
icon = Icons.Default.CorporateFare,
|
||||
title = stringResource(R.string.navigation_drawer_managed),
|
||||
onClick = {
|
||||
uriHandler.openUri(
|
||||
Constants.HOMEPAGE_URL.buildUpon()
|
||||
.appendPath(Constants.MANAGED_PATH)
|
||||
.withStatParams(WEB_CONTEXT)
|
||||
.build().toString()
|
||||
)
|
||||
}
|
||||
)
|
||||
MenuEntry(
|
||||
icon = Icons.Default.CloudOff,
|
||||
title = stringResource(R.string.navigation_drawer_privacy_policy),
|
||||
|
||||
@@ -137,6 +137,7 @@
|
||||
<string name="navigation_drawer_website">Web site</string>
|
||||
<string name="navigation_drawer_manual">Manual</string>
|
||||
<string name="navigation_drawer_faq">FAQ</string>
|
||||
<string name="navigation_drawer_managed">For organizations</string>
|
||||
<string name="navigation_drawer_community">Community</string>
|
||||
<string name="navigation_drawer_support_project">Support the project</string>
|
||||
<string name="navigation_drawer_contribute">How to contribute</string>
|
||||
|
||||
Reference in New Issue
Block a user