diff --git a/frontend/src/app/modules/boards/board/board.component.ts b/frontend/src/app/modules/boards/board/board.component.ts index 3f22bd2109..5fcd45a083 100644 --- a/frontend/src/app/modules/boards/board/board.component.ts +++ b/frontend/src/app/modules/boards/board/board.component.ts @@ -106,7 +106,6 @@ export class BoardComponent implements OnInit, OnDestroy { .save(board) .then(board => { this.inFlight = false; - board.sortWidgets(); return board; }) .catch((error) => { diff --git a/frontend/src/app/modules/boards/board/board.service.ts b/frontend/src/app/modules/boards/board/board.service.ts index a6b8ea6b6f..2742043ba4 100644 --- a/frontend/src/app/modules/boards/board/board.service.ts +++ b/frontend/src/app/modules/boards/board/board.service.ts @@ -74,6 +74,7 @@ export class BoardService { this.reorderWidgets(board); return this.boardDm.save(board) .then(board => { + board.sortWidgets(); this.boardCache.update(board); return board; }); diff --git a/modules/costs/app/views/cost_types/_list.html.erb b/modules/costs/app/views/cost_types/_list.html.erb index ef8a8a65aa..0b9db32341 100644 --- a/modules/costs/app/views/cost_types/_list.html.erb +++ b/modules/costs/app/views/cost_types/_list.html.erb @@ -96,9 +96,9 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. method: :delete, html: { id: "delete_cost_type_#{cost_type.id}", class: 'delete_cost_type', - title: t(:button_delete) } do |f| %> + title: t(:button_lock) } do |f| %> <% end %> diff --git a/modules/costs/app/views/cost_types/_list_deleted.html.erb b/modules/costs/app/views/cost_types/_list_deleted.html.erb index 8da2821a6d..b54b7109c3 100644 --- a/modules/costs/app/views/cost_types/_list_deleted.html.erb +++ b/modules/costs/app/views/cost_types/_list_deleted.html.erb @@ -74,7 +74,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. html: { id: "restore_cost_type_#{cost_type.id}", class: 'restore_cost_type' } do |f| %> <% end %>