Skip to content
Snippets Groups Projects
Commit df6eb8a0 authored by Robert Goldmann's avatar Robert Goldmann
Browse files

#419 - save icon path when editing an existing account

parent 27a582c3
No related branches found
No related tags found
No related merge requests found
...@@ -183,6 +183,7 @@ public class AccountController extends BaseController ...@@ -183,6 +183,7 @@ public class AccountController extends BaseController
{ {
Account existingAccount = existingAccountOptional.get(); Account existingAccount = existingAccountOptional.get();
existingAccount.setName(account.getName()); existingAccount.setName(account.getName());
existingAccount.setIconPath(account.getIconPath());
accountService.getRepository().save(existingAccount); accountService.getRepository().save(existingAccount);
} }
} }
......
...@@ -41,6 +41,7 @@ ...@@ -41,6 +41,7 @@
<a href="<@s.url '/accounts/${account.getID()?c}/toggleReadOnly'/>" class="btn-flat no-padding text-default tooltipped" data-position="right" data-tooltip="${toolTipText}">${lockIcon}</a> <a href="<@s.url '/accounts/${account.getID()?c}/toggleReadOnly'/>" class="btn-flat no-padding text-default tooltipped" data-position="right" data-tooltip="${toolTipText}">${lockIcon}</a>
</#if> </#if>
</td> </td>
<td><#if account.getIconPath()?has_content><i class="${account.getIconPath()}"></i></#if></td>
<td>${account.getName()}</td> <td>${account.getName()}</td>
<td> <td>
<a href="<@s.url '/accounts/${account.getID()?c}/edit'/>" class="btn-flat no-padding text-default"><i class="material-icons left">edit</i></a> <a href="<@s.url '/accounts/${account.getID()?c}/edit'/>" class="btn-flat no-padding text-default"><i class="material-icons left">edit</i></a>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment