mirror of
https://github.com/Artemis-RGB/Artemis
synced 2026-01-02 10:43:31 +00:00
Compare commits
2 Commits
78b96deeab
...
c29d30d222
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c29d30d222 | ||
|
|
cea8c1b796 |
@ -228,7 +228,7 @@ public partial class SubmissionDetailViewModel : RoutableScreen<WorkshopDetailPa
|
|||||||
// Update existing images
|
// Update existing images
|
||||||
else if (imageViewModel.HasChanges && imageViewModel.Id != null)
|
else if (imageViewModel.HasChanges && imageViewModel.Id != null)
|
||||||
{
|
{
|
||||||
if (imageViewModel.Name != null && imageViewModel.Description != null)
|
if (imageViewModel.Name != null)
|
||||||
await _client.UpdateEntryImage.ExecuteAsync(imageViewModel.Id.Value, imageViewModel.Name, imageViewModel.Description, cancellationToken);
|
await _client.UpdateEntryImage.ExecuteAsync(imageViewModel.Id.Value, imageViewModel.Name, imageViewModel.Description, cancellationToken);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
mutation UpdateEntryImage ($id: UUID! $name: String! $description: String!) {
|
mutation UpdateEntryImage ($id: UUID! $name: String! $description: String) {
|
||||||
updateEntryImage(input: {id: $id, name: $name description: $description}) {
|
updateEntryImage(input: {id: $id, name: $name description: $description}) {
|
||||||
id
|
id
|
||||||
}
|
}
|
||||||
|
|||||||
@ -84,7 +84,7 @@ public class WorkshopService : IWorkshopService
|
|||||||
public async Task DeleteEntryImage(Guid id, CancellationToken cancellationToken)
|
public async Task DeleteEntryImage(Guid id, CancellationToken cancellationToken)
|
||||||
{
|
{
|
||||||
HttpClient client = _httpClientFactory.CreateClient(WorkshopConstants.WORKSHOP_CLIENT_NAME);
|
HttpClient client = _httpClientFactory.CreateClient(WorkshopConstants.WORKSHOP_CLIENT_NAME);
|
||||||
HttpResponseMessage response = await client.DeleteAsync($"images/{id}", cancellationToken);
|
HttpResponseMessage response = await client.DeleteAsync($"images/manage/{id}", cancellationToken);
|
||||||
response.EnsureSuccessStatusCode();
|
response.EnsureSuccessStatusCode();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -2,9 +2,9 @@ namespace Artemis.WebClient.Workshop;
|
|||||||
|
|
||||||
public static class WorkshopConstants
|
public static class WorkshopConstants
|
||||||
{
|
{
|
||||||
public const string AUTHORITY_URL = "https://localhost:5001";
|
// public const string AUTHORITY_URL = "https://localhost:5001";
|
||||||
public const string WORKSHOP_URL = "https://localhost:7281";
|
// public const string WORKSHOP_URL = "https://localhost:7281";
|
||||||
// public const string AUTHORITY_URL = "https://identity.artemis-rgb.com";
|
public const string AUTHORITY_URL = "https://identity.artemis-rgb.com";
|
||||||
// public const string WORKSHOP_URL = "https://workshop.artemis-rgb.com";
|
public const string WORKSHOP_URL = "https://workshop.artemis-rgb.com";
|
||||||
public const string WORKSHOP_CLIENT_NAME = "WorkshopApiClient";
|
public const string WORKSHOP_CLIENT_NAME = "WorkshopApiClient";
|
||||||
}
|
}
|
||||||
@ -426,7 +426,7 @@ input TagFilterInput {
|
|||||||
}
|
}
|
||||||
|
|
||||||
input UpdateEntryImageInput {
|
input UpdateEntryImageInput {
|
||||||
description: String!
|
description: String
|
||||||
id: UUID!
|
id: UUID!
|
||||||
name: String!
|
name: String!
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user