Use correct colors in popoverColorPicker

This commit is contained in:
md678685 2020-08-29 15:20:27 +01:00
parent 216bda5c26
commit ada42e50fb
2 changed files with 8 additions and 9 deletions

View File

@ -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));
}

View File

@ -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>