Fix bug with enable setting, clean up sign in UIs

This commit is contained in:
Mikayla Maki 2023-03-29 21:51:07 -07:00
parent cc7c5b416c
commit a8033b266d
3 changed files with 17 additions and 47 deletions

View file

@ -11,7 +11,7 @@ use workspace::{
item::ItemHandle, notifications::simple_message_notification::OsOpen, StatusItemView,
};
use copilot::{Copilot, SignOut, Status};
use copilot::{Copilot, SignIn, SignOut, Status};
const COPILOT_SETTINGS_URL: &str = "https://github.com/settings/copilot";
@ -140,7 +140,7 @@ impl View for CopilotButton {
if authorized {
cx.dispatch_action(DeployCopilotMenu);
} else {
cx.dispatch_action(DeployCopilotModal);
cx.dispatch_action(SignIn);
}
})
.with_tooltip::<Self, _>(