remove Accounts > Notifications tab

This commit is contained in:
woodser 2023-08-01 17:57:26 -04:00
parent 02ba804432
commit 1e5b3dc9d7
2 changed files with 1 additions and 14 deletions

View file

@ -38,11 +38,6 @@
AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="0.0" AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="0.0"
AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="0.0"/> AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="0.0"/>
</Tab> </Tab>
<Tab fx:id="notificationTab" closable="false">
<ScrollPane fitToWidth="true" hbarPolicy="NEVER"
AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="0.0"
AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="0.0"/>
</Tab>
<Tab fx:id="passwordTab" closable="false"/> <Tab fx:id="passwordTab" closable="false"/>
<Tab fx:id="seedWordsTab" closable="false"> <Tab fx:id="seedWordsTab" closable="false">
<ScrollPane fitToWidth="true" hbarPolicy="NEVER" <ScrollPane fitToWidth="true" hbarPolicy="NEVER"

View file

@ -29,7 +29,6 @@ import haveno.desktop.common.view.ViewLoader;
import haveno.desktop.main.MainView; import haveno.desktop.main.MainView;
import haveno.desktop.main.account.content.backup.BackupView; import haveno.desktop.main.account.content.backup.BackupView;
import haveno.desktop.main.account.content.cryptoaccounts.CryptoAccountsView; import haveno.desktop.main.account.content.cryptoaccounts.CryptoAccountsView;
import haveno.desktop.main.account.content.notifications.MobileNotificationsView;
import haveno.desktop.main.account.content.password.PasswordView; import haveno.desktop.main.account.content.password.PasswordView;
import haveno.desktop.main.account.content.seedwords.SeedWordsView; import haveno.desktop.main.account.content.seedwords.SeedWordsView;
import haveno.desktop.main.account.content.traditionalaccounts.TraditionalAccountsView; import haveno.desktop.main.account.content.traditionalaccounts.TraditionalAccountsView;
@ -57,7 +56,7 @@ import java.util.List;
public class AccountView extends ActivatableView<TabPane, Void> { public class AccountView extends ActivatableView<TabPane, Void> {
@FXML @FXML
Tab traditionalAccountsTab, cryptoAccountsTab, notificationTab, Tab traditionalAccountsTab, cryptoAccountsTab,
passwordTab, seedWordsTab, walletInfoTab, backupTab; passwordTab, seedWordsTab, walletInfoTab, backupTab;
private Navigation.Listener navigationListener; private Navigation.Listener navigationListener;
@ -90,7 +89,6 @@ public class AccountView extends ActivatableView<TabPane, Void> {
traditionalAccountsTab.setText(Res.get("account.menu.paymentAccount").toUpperCase()); traditionalAccountsTab.setText(Res.get("account.menu.paymentAccount").toUpperCase());
cryptoAccountsTab.setText(Res.get("account.menu.altCoinsAccountView").toUpperCase()); cryptoAccountsTab.setText(Res.get("account.menu.altCoinsAccountView").toUpperCase());
notificationTab.setText(Res.get("account.menu.notifications").toUpperCase());
passwordTab.setText(Res.get("account.menu.password").toUpperCase()); passwordTab.setText(Res.get("account.menu.password").toUpperCase());
seedWordsTab.setText(Res.get("account.menu.seedWords").toUpperCase()); seedWordsTab.setText(Res.get("account.menu.seedWords").toUpperCase());
//walletInfoTab.setText(Res.get("account.menu.walletInfo").toUpperCase()); //walletInfoTab.setText(Res.get("account.menu.walletInfo").toUpperCase());
@ -155,8 +153,6 @@ public class AccountView extends ActivatableView<TabPane, Void> {
navigation.navigateTo(MainView.class, AccountView.class, TraditionalAccountsView.class); navigation.navigateTo(MainView.class, AccountView.class, TraditionalAccountsView.class);
} else if (newValue == cryptoAccountsTab && selectedTab != cryptoAccountsTab) { } else if (newValue == cryptoAccountsTab && selectedTab != cryptoAccountsTab) {
navigation.navigateTo(MainView.class, AccountView.class, CryptoAccountsView.class); navigation.navigateTo(MainView.class, AccountView.class, CryptoAccountsView.class);
} else if (newValue == notificationTab && selectedTab != notificationTab) {
navigation.navigateTo(MainView.class, AccountView.class, MobileNotificationsView.class);
} else if (newValue == passwordTab && selectedTab != passwordTab) { } else if (newValue == passwordTab && selectedTab != passwordTab) {
navigation.navigateTo(MainView.class, AccountView.class, PasswordView.class); navigation.navigateTo(MainView.class, AccountView.class, PasswordView.class);
} else if (newValue == seedWordsTab && selectedTab != seedWordsTab) { } else if (newValue == seedWordsTab && selectedTab != seedWordsTab) {
@ -247,8 +243,6 @@ public class AccountView extends ActivatableView<TabPane, Void> {
navigation.navigateTo(MainView.class, AccountView.class, TraditionalAccountsView.class); navigation.navigateTo(MainView.class, AccountView.class, TraditionalAccountsView.class);
else if (root.getSelectionModel().getSelectedItem() == cryptoAccountsTab) else if (root.getSelectionModel().getSelectedItem() == cryptoAccountsTab)
navigation.navigateTo(MainView.class, AccountView.class, CryptoAccountsView.class); navigation.navigateTo(MainView.class, AccountView.class, CryptoAccountsView.class);
else if (root.getSelectionModel().getSelectedItem() == notificationTab)
navigation.navigateTo(MainView.class, AccountView.class, MobileNotificationsView.class);
else if (root.getSelectionModel().getSelectedItem() == passwordTab) else if (root.getSelectionModel().getSelectedItem() == passwordTab)
navigation.navigateTo(MainView.class, AccountView.class, PasswordView.class); navigation.navigateTo(MainView.class, AccountView.class, PasswordView.class);
else if (root.getSelectionModel().getSelectedItem() == seedWordsTab) else if (root.getSelectionModel().getSelectedItem() == seedWordsTab)
@ -303,8 +297,6 @@ public class AccountView extends ActivatableView<TabPane, Void> {
selectedTab = traditionalAccountsTab; selectedTab = traditionalAccountsTab;
} else if (view instanceof CryptoAccountsView) { } else if (view instanceof CryptoAccountsView) {
selectedTab = cryptoAccountsTab; selectedTab = cryptoAccountsTab;
} else if (view instanceof MobileNotificationsView) {
selectedTab = notificationTab;
} else if (view instanceof PasswordView) { } else if (view instanceof PasswordView) {
selectedTab = passwordTab; selectedTab = passwordTab;
} else if (view instanceof SeedWordsView) { } else if (view instanceof SeedWordsView) {