Add web account settings button

This commit is contained in:
Thomas Ricouard 2023-03-03 18:21:52 +01:00
parent 42c444fb03
commit deae0930b1
19 changed files with 29 additions and 0 deletions

View File

@ -9,12 +9,14 @@ import Timeline
struct AccountSettingsView: View {
@Environment(\.dismiss) private var dismiss
@Environment(\.openURL) private var openURL
@EnvironmentObject private var pushNotifications: PushNotificationsService
@EnvironmentObject private var currentAccount: CurrentAccount
@EnvironmentObject private var currentInstance: CurrentInstance
@EnvironmentObject private var theme: Theme
@EnvironmentObject private var appAccountsManager: AppAccountsManager
@EnvironmentObject private var client: Client
@State private var isEditingAccount: Bool = false
@State private var isEditingFilters: Bool = false
@ -64,6 +66,15 @@ struct AccountSettingsView: View {
}
.listRowBackground(theme.primaryBackgroundColor)
Section {
Button {
openURL(URL(string: "https://\(client.server)/settings/profile")!)
} label: {
Text("account.action.more")
}
}
.listRowBackground(theme.primaryBackgroundColor)
Section {
Button(role: .destructive) {
if let token = appAccount.oauthToken {

View File

@ -293,6 +293,7 @@
"account.relation.follows-you" = "Сочыць за табой";
"account.joined" = "Далучыліся";
"account.action.logout" = "Выйсці з уліковага запісу";
"account.action.more" = "More Settings";
"account.relation.note.edit" = "Рэдагаваць нататку";
"account.relation.note.edit.placeholder" = "Увядзіце тэкст нататкі";

View File

@ -287,6 +287,7 @@
"account.relation.follows-you" = "Us segueix";
"account.joined" = "S'ha unit";
"account.action.logout" = "Tanca la sessió";
"account.action.more" = "More Settings";
"account.relation.note.edit" = "Edit Note";
"account.relation.note.edit.placeholder" = "Enter Note text";

View File

@ -289,6 +289,7 @@
"account.joined" = "Beigetreten am";
"account.action.logout" = "Abmelden";
"account.action.edit-filters" = "Filter bearbeiten";
"account.action.more" = "More Settings";
"account.relation.note.edit" = "Notiz bearbeiten";
"account.relation.note.edit.placeholder" = "Gib den Notiztext ein";

View File

@ -290,6 +290,7 @@
"account.relation.follows-you" = "Follows You";
"account.joined" = "Joined";
"account.action.logout" = "Log Out Account";
"account.action.more" = "More Settings";
"account.relation.note.edit" = "Edit Note";
"account.relation.note.edit.placeholder" = "Enter Note text";

View File

@ -289,6 +289,7 @@
"account.relation.follows-you" = "Follows You";
"account.joined" = "Joined";
"account.action.logout" = "Log Out Account";
"account.action.more" = "More Settings";
"account.relation.note.edit" = "Edit Note";
"account.relation.note.edit.placeholder" = "Enter Note text";

View File

@ -289,6 +289,7 @@
"account.relation.follows-you" = "Te sigue";
"account.joined" = "Se unió el";
"account.action.logout" = "Cerrar sesión";
"account.action.more" = "More Settings";
"account.relation.note.edit" = "Editar nota";
"account.relation.note.edit.placeholder" = "Escribe una nota de texto";

View File

@ -289,6 +289,7 @@
"account.joined" = "Batze-data:";
"account.action.logout" = "Amaitu saioa";
"account.action.edit-filters" = "Editatu iragazkiak";
"account.action.more" = "More Settings";
"account.relation.note.edit" = "Editatu oharra";
"account.relation.note.edit.placeholder" = "Idatzi oharra hemen";

View File

@ -288,6 +288,7 @@
"account.relation.follows-you" = "Vous suit";
"account.joined" = "Inscrit";
"account.action.logout" = "Déconnexion";
"account.action.more" = "More Settings";
"account.relation.note.edit" = "Modifier la note";
"account.relation.note.edit.placeholder" = "Saisissez le texte de la note";

View File

@ -289,6 +289,7 @@
"account.joined" = "utente dal";
"account.action.logout" = "Esci dall'account";
"account.action.edit-filters" = "Modifica i Filtri";
"account.action.more" = "More Settings";
"account.relation.note.edit" = "Modifica nota";
"account.relation.note.edit.placeholder" = "Inserisci il testo della nota";

View File

@ -288,6 +288,7 @@
"account.relation.follows-you" = "フォローされています";
"account.joined" = "登録日";
"account.action.logout" = "アカウントをログアウトする";
"account.action.more" = "More Settings";
"account.relation.note.edit" = "ノートを編集";
"account.relation.note.edit.placeholder" = "ノートを入力";

View File

@ -289,6 +289,7 @@
"account.relation.follows-you" = "나를 팔로우함";
"account.joined" = "가입";
"account.action.logout" = "로그아웃";
"account.action.more" = "More Settings";
"account.relation.note.edit" = "노트 편집";
"account.relation.note.edit.placeholder" = "나만 볼 수 있는 노트";

View File

@ -288,6 +288,7 @@
"account.relation.follows-you" = "Følger deg";
"account.joined" = "Ble med";
"account.action.logout" = "Logg ut konto";
"account.action.more" = "More Settings";
"account.relation.note.edit" = "Edit Note";
"account.relation.note.edit.placeholder" = "Enter Note text";

View File

@ -286,6 +286,7 @@
"account.joined" = "Lid geworden";
"account.action.logout" = "Log uit";
"account.action.edit-filters" = "Bewerk filters";
"account.action.more" = "More Settings";
"account.relation.note.edit" = "Bewerk notitie";
"account.relation.note.edit.placeholder" = "Voer notitietekst in";

View File

@ -286,6 +286,7 @@
"account.relation.follows-you" = "Obserwuje ciebie";
"account.joined" = "Dołączył(a)";
"account.action.logout" = "Wyloguj się";
"account.action.more" = "More Settings";
"account.relation.note.edit" = "Edytuj notatkę";
"account.relation.note.edit.placeholder" = "Wprowadź treść notatki";

View File

@ -288,6 +288,7 @@
"account.relation.follows-you" = "Seguiu Você";
"account.joined" = "Entrou em";
"account.action.logout" = "Sair da conta";
"account.action.more" = "More Settings";
"account.relation.note.edit" = "Editar nota";
"account.relation.note.edit.placeholder" = "Digite o texto da nota";

View File

@ -284,6 +284,7 @@
"account.relation.follows-you" = "Seni takip ediyor";
"account.joined" = "Katılındı";
"account.action.logout" = "Log out account";
"account.action.more" = "More Settings";
"account.relation.note.edit" = "Edit Note";
"account.relation.note.edit.placeholder" = "Enter Note text";

View File

@ -289,6 +289,7 @@
"account.relation.follows-you" = "Підписується на вас";
"account.joined" = "Доєднався";
"account.action.logout" = "Вийти з облікового запису";
"account.action.more" = "More Settings";
"account.relation.note.edit" = "Редагувати нотатку";
"account.relation.note.edit.placeholder" = "Додати нотатку";

View File

@ -287,6 +287,7 @@
"account.joined" = "加入于";
"account.action.logout" = "退出登录";
"account.action.edit-filters" = "编辑过滤器";
"account.action.more" = "More Settings";
"account.relation.note.edit" = "编辑备注";
"account.relation.note.edit.placeholder" = "输入备注文本";