Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions Knossos.NET/ViewModels/Templates/DevModMembersMgrViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,13 @@ public async void UpdateUI()
if (editor != null && !MemberItems.Any())
{
if (Nebula.userIsLoggedIn) {
//verify if the modid is already uploaded to nebula
if(await Nebula.IsModIdInNebula(editor.ActiveVersion.id) == false)
{
_ = MessageBox.Show(MainWindow.instance!, "The mod id: " + editor.ActiveVersion.id + ", was not found in Nebula's database. This likely means your mod was never uploaded to Nebula.\nYou need to upload at least one version to Nebula (public or private) in order to manage mod members.\nIt can also be caused by a network error.", "Mod ID not in Nebula", MessageBox.MessageBoxButtons.OK);
ButtonsEnabled = false;
return;
}
ButtonsEnabled = true;
ShowLoginError = false;
var members = await Nebula.GetTeamMembers(editor.ActiveVersion.id).ConfigureAwait(false);
Expand Down
2 changes: 1 addition & 1 deletion Knossos.NET/Views/Templates/DevModMembersMgrView.cs.axaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
</DataTemplate>
</ListBox.ItemTemplate>
</ListBox>
<TextBlock Margin="20" Width="400" TextWrapping="Wrap" IsEnabled="{Binding ShowLoginError}" FontSize="20" Foreground="Red">
<TextBlock Margin="20" Width="400" TextWrapping="Wrap" IsVisible="{Binding ShowLoginError}" FontSize="20" Foreground="Red">
You must be logged in to Nebula to manage your mod development team.
</TextBlock>
</StackPanel>
Expand Down