mirror of
https://github.com/HangarMC/Hangar.git
synced 2025-03-25 15:50:39 +08:00
Use correct colors in popoverColorPicker
This commit is contained in:
parent
216bda5c26
commit
ada42e50fb
@ -44,7 +44,6 @@ public class ChannelsController extends HangarController {
|
||||
public ModelAndView create(@PathVariable String author, @PathVariable String slug, @RequestParam("channel-input") String channelId, @RequestParam("channel-color-input") String channelHex) {
|
||||
ProjectData projectData = projectService.getProjectData(author, slug);
|
||||
channelService.addProjectChannel(projectData.getProject().getId(), channelId, Color.getByHexStr(channelHex));
|
||||
//TODO fix popoverColorPicker to select the color
|
||||
return new ModelAndView("redirect:" + routeHelper.getRouteUrl("channels.showList", author, slug));
|
||||
}
|
||||
|
||||
|
@ -20,32 +20,32 @@
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="padding: 3px;">
|
||||
<i class="fas fa-circle channel-id" style="color: ${Color.getById(4).getHex()}"></i>
|
||||
</td>
|
||||
<td style="padding: 3px;">
|
||||
<i class="fas fa-circle channel-id" style="color: ${Color.getById(5).getHex()}"></i>
|
||||
</td>
|
||||
<td style="padding: 3px;">
|
||||
<i class="fas fa-circle channel-id" style="color: ${Color.getById(6).getHex()}"></i>
|
||||
</td>
|
||||
<td style="padding: 3px;">
|
||||
<i class="fas fa-circle channel-id" style="color: ${Color.getById(7).getHex()}"></i>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="padding: 3px;">
|
||||
<i class="fas fa-circle channel-id" style="color: ${Color.getById(8).getHex()}"></i>
|
||||
</td>
|
||||
<td style="padding: 3px;">
|
||||
<i class="fas fa-circle channel-id" style="color: ${Color.getById(9).getHex()}"></i>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="padding: 3px;">
|
||||
<i class="fas fa-circle channel-id" style="color: ${Color.getById(10).getHex()}"></i>
|
||||
</td>
|
||||
<td style="padding: 3px;">
|
||||
<i class="fas fa-circle channel-id" style="color: ${Color.getById(11).getHex()}"></i>
|
||||
</td>
|
||||
<td style="padding: 3px;">
|
||||
<i class="fas fa-circle channel-id" style="color: ${Color.getById(13).getHex()}"></i>
|
||||
</td>
|
||||
<td style="padding: 3px;">
|
||||
<i class="fas fa-circle channel-id" style="color: ${Color.getById(14).getHex()}"></i>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
Loading…
x
Reference in New Issue
Block a user