Extract app UI action models
This commit is contained in:
+14
-14
@@ -2740,60 +2740,60 @@ func (u *ui) shouldShowSavedRemoteBindingSelectors() bool {
|
||||
|
||||
func (u *ui) savedRemoteBindingSummary() (profileLabel, credentialLabel, syncLabel string, ok bool) {
|
||||
summary := u.computeSavedRemoteBindingSummary()
|
||||
return summary.profileLabel, summary.credentialLabel, summary.syncLabel, summary.ok
|
||||
return summary.ProfileLabel, summary.CredentialLabel, summary.SyncLabel, summary.OK
|
||||
}
|
||||
|
||||
func (u *ui) savedRemoteBindingHeading() string {
|
||||
return u.buildSyncMenuModel().savedBindingHeading()
|
||||
return u.buildSyncMenuModel().SavedBindingHeading()
|
||||
}
|
||||
|
||||
func (u *ui) openSelectedVaultRemoteButtonLabel() string {
|
||||
return u.buildSyncMenuModel().openSelectedButtonLabel()
|
||||
return u.buildSyncMenuModel().OpenSelectedButtonLabel()
|
||||
}
|
||||
|
||||
func (u *ui) shouldShowDirectRemoteSyncShortcut() bool {
|
||||
if !u.hasOpenVault() || u.isVaultLocked() || u.state.Section != appstate.SectionEntries {
|
||||
return false
|
||||
}
|
||||
return u.buildSyncMenuModel().showDirectRemoteSyncShortcut()
|
||||
return u.buildSyncMenuModel().ShowDirectRemoteSyncShortcut()
|
||||
}
|
||||
|
||||
func (u *ui) directRemoteSyncShortcutLabel() string {
|
||||
return u.buildSyncMenuModel().directRemoteSyncShortcutLabel()
|
||||
return u.buildSyncMenuModel().DirectRemoteSyncShortcutLabel()
|
||||
}
|
||||
|
||||
func (u *ui) shouldShowRemoteSyncSettingsShortcut() bool {
|
||||
if !u.hasOpenVault() || u.isVaultLocked() || u.state.Section != appstate.SectionEntries {
|
||||
return false
|
||||
}
|
||||
return u.buildSyncMenuModel().showRemoteSyncSettingsShortcut()
|
||||
return u.buildSyncMenuModel().ShowRemoteSyncSettingsShortcut()
|
||||
}
|
||||
|
||||
func (u *ui) remoteSyncSettingsShortcutLabel() string {
|
||||
return u.buildSyncMenuModel().remoteSyncSettingsShortcutLabel()
|
||||
return u.buildSyncMenuModel().RemoteSyncSettingsShortcutLabel()
|
||||
}
|
||||
|
||||
func (u *ui) shouldShowRemoveRemoteSyncShortcut() bool {
|
||||
return u.buildSyncMenuModel().showRemoveRemoteSyncShortcut()
|
||||
return u.buildSyncMenuModel().ShowRemoveRemoteSyncShortcut()
|
||||
}
|
||||
|
||||
func (u *ui) removeRemoteSyncShortcutLabel() string {
|
||||
return u.buildSyncMenuModel().removeRemoteSyncShortcutLabel()
|
||||
return u.buildSyncMenuModel().RemoveRemoteSyncShortcutLabel()
|
||||
}
|
||||
|
||||
func (u *ui) shouldShowRemoteSyncSetupShortcut() bool {
|
||||
if !u.hasOpenVault() || u.isVaultLocked() || u.state.Section != appstate.SectionEntries {
|
||||
return false
|
||||
}
|
||||
return u.buildSyncMenuModel().showRemoteSyncSetupShortcut()
|
||||
return u.buildSyncMenuModel().ShowRemoteSyncSetupShortcut()
|
||||
}
|
||||
|
||||
func (u *ui) remoteSyncSetupShortcutLabel() string {
|
||||
return u.buildSyncMenuModel().remoteSyncSetupShortcutLabel()
|
||||
return u.buildSyncMenuModel().RemoteSyncSetupShortcutLabel()
|
||||
}
|
||||
|
||||
func (u *ui) syncMenuActionLabels() []string {
|
||||
return u.buildSyncMenuModel().actionLabels()
|
||||
return u.buildSyncMenuModel().ActionLabels()
|
||||
}
|
||||
|
||||
func remoteBindingSuffix(baseURL, path, username string) string {
|
||||
@@ -2901,11 +2901,11 @@ func (u *ui) removeSelectedRemoteBindingAction() error {
|
||||
}
|
||||
|
||||
func (u *ui) saveCurrentRemoteBindingHeading() string {
|
||||
return u.buildSyncMenuModel().saveCurrentRemoteBindingHeading()
|
||||
return u.buildSyncMenuModel().SaveCurrentRemoteBindingHeading()
|
||||
}
|
||||
|
||||
func (u *ui) saveCurrentRemoteBindingButtonLabel() string {
|
||||
return u.buildSyncMenuModel().saveCurrentRemoteBindingButtonLabel()
|
||||
return u.buildSyncMenuModel().SaveCurrentRemoteBindingButtonLabel()
|
||||
}
|
||||
|
||||
func (u *ui) materializeCurrentRemoteCache() error {
|
||||
|
||||
Reference in New Issue
Block a user