Finish the prompt page logic.

This commit is contained in:
Yang Luo
2021-06-20 09:46:06 +08:00
parent e0b6270f50
commit d3a8ab8347
8 changed files with 175 additions and 79 deletions

View File

@ -32,3 +32,11 @@ func (application *Application) GetProviderItem(providerName string) *ProviderIt
}
return nil
}
func (pi *ProviderItem) isProviderVisible() bool {
return pi.Provider.Category == "OAuth"
}
func (pi *ProviderItem) isProviderPrompted() bool {
return pi.isProviderVisible() && pi.Prompted
}