Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ADST-601 #361

Merged
merged 2 commits into from
Sep 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions actions/src/main/res/values-de/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -93,5 +93,7 @@

<string name="workflows_unavailable_title">Workflows sind nicht verfügbar!</string>
<string name="workflow_unavailable_message">Workflows werden hier angezeigt, wenn sie erstellt werden.</string>
<string name="no_actions_available_title">Keine Aktionen verfügbar.</string>
<string name="no_actions_available_message">Wenden Sie sich an Ihren Administrator, um Hilfe zu erhalten.</string>

</resources>
2 changes: 2 additions & 0 deletions actions/src/main/res/values-es/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,8 @@
<string name="action_add_favorite_multiple_toast">%s elementos agregados a favoritos</string>
<string name="action_remove_favorite_multiple_toast">%s elementos removidos de favoritos</string>

<string name="no_actions_available_title">No hay acciones disponibles.</string>
<string name="no_actions_available_message">Póngase en contacto con su administrador para obtener ayuda.</string>
<string name="workflows_empty_title">No se encontró ningún flujo de trabajo</string>
<string name="workflows_empty_message">Inicie un flujo de trabajo nuevo que desee encontrar con facilidad más adelante.</string>

Expand Down
2 changes: 2 additions & 0 deletions actions/src/main/res/values-fr/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -93,4 +93,6 @@

<string name="workflows_unavailable_title">Workflows non disponibles</string>
<string name="workflow_unavailable_message">Les workflows apparaîtront ici lorsqu\'ils seront créés.</string>
<string name="no_actions_available_title">Aucune action disponible.</string>
<string name="no_actions_available_message">Contactez votre administrateur pour obtenir de l\'aide.</string>
</resources>
2 changes: 2 additions & 0 deletions actions/src/main/res/values-it/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -93,4 +93,6 @@

<string name="workflows_unavailable_title">Workflow non disponibili!</string>
<string name="workflow_unavailable_message">Una volta creati, i workflow verrano visualizzati qui.</string>
<string name="no_actions_available_title">Nessuna azione disponibile.</string>
<string name="no_actions_available_message">Contattare l\'amministratore per ottenere assistenza.</string>
</resources>
2 changes: 2 additions & 0 deletions actions/src/main/res/values-nl/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,8 @@
<string name="action_add_favorite_multiple_toast">%s items toegevoegd aan favorieten</string>
<string name="action_remove_favorite_multiple_toast">%s items verwijderd uit favorieten</string>

<string name="no_actions_available_title">Geen acties beschikbaar.</string>
<string name="no_actions_available_message">Neem contact op met je beheerder voor hulp.</string>
<string name="workflows_empty_title">Geen workflows gevonden</string>
<string name="workflows_empty_message">Maak een nieuwe workflow die u later gemakkelijk wilt kunnen vinden.</string>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,12 @@ class CommonRepository(val session: Session = SessionManager.requireSession) {
}

suspend fun getMobileConfigData() {
val data = MobileConfigDataEntry.with(service.getMobileConfig("https://${URL(session.account.serverUrl).host}/app-config.json"))

var data = MobileConfigDataEntry.default()
try {
data = MobileConfigDataEntry.with(service.getMobileConfig("https://${URL(session.account.serverUrl).host}/app-config.json"))
} catch (ex: Exception) {
ex.printStackTrace()
}
saveJsonToSharedPrefs(session.context, KEY_FEATURES_MOBILE, data)
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ data class MobileConfigDataEntry(
featuresMobile = MobileFeatures.with(configData.featuresMobile),
)
}

fun default(): MobileConfigDataEntry {
return MobileConfigDataEntry(featuresMobile = MobileFeatures())
}
}
}

Expand Down
Loading