Add short message to indicate why a feed url can't be updated with a FreshRSS account

This commit is contained in:
Shinokuni 2024-05-20 15:29:52 +02:00
parent 219d816483
commit 940b6de97a
3 changed files with 6 additions and 0 deletions

View File

@ -64,6 +64,10 @@ fun UpdateFeedDialog(
Text( Text(
text = state.feedUrlError?.errorText().orEmpty() text = state.feedUrlError?.errorText().orEmpty()
) )
} else if (state.isFeedUrlReadOnly) {
Text(
text = stringResource(id = R.string.feed_url_read_only)
)
} }
} }
) )

View File

@ -164,4 +164,5 @@
<string name="http_error_4XX">Erreur HTTP %1$d, veuillez vérifier vos champs</string> <string name="http_error_4XX">Erreur HTTP %1$d, veuillez vérifier vos champs</string>
<string name="http_error_5XX">Erreur HTTP %1$d, erreur serveur</string> <string name="http_error_5XX">Erreur HTTP %1$d, erreur serveur</string>
<string name="http_error">Erreur HTTP %1$d</string> <string name="http_error">Erreur HTTP %1$d</string>
<string name="feed_url_read_only">L\'API de FreshRSS ne permet pas de modifier l\'URL</string>
</resources> </resources>

View File

@ -170,4 +170,5 @@
<string name="http_error_4XX">HTTP error %1$d, please check your fields</string> <string name="http_error_4XX">HTTP error %1$d, please check your fields</string>
<string name="http_error_5XX">HTTP error %1$d, server error</string> <string name="http_error_5XX">HTTP error %1$d, server error</string>
<string name="http_error">HTTP error %1$d</string> <string name="http_error">HTTP error %1$d</string>
<string name="feed_url_read_only">FreshRSS API doesn\'t support Feed URL modification</string>
</resources> </resources>