Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ module.controller('WidgetAccountsComparisonCtrl', ($scope, $q, ChartFormatterSvc
# Widget specific methods
# --------------------------------------
w.initContext = ->
$scope.movedAccount = {}
$scope.movedAccount = []
# defines the available options for params-checkboxes.directive
$translate('impac.widget.account_comp.compare_mode_opt').then((label)->
$scope.comparisonModeOptions = [{
Expand Down Expand Up @@ -105,7 +105,7 @@ module.controller('WidgetAccountsComparisonCtrl', ($scope, $q, ChartFormatterSvc
inputData = {labels: [], values: []}
# Waiting for next digest cycle to ensure w.selectedAccounts have been pre-populated
# by any saved accounts.
$timeout () ->
$timeout ->
for account in w.selectedAccounts
if $scope.isComparisonMode()
for groupedAccount in account.accounts
Expand All @@ -128,7 +128,7 @@ module.controller('WidgetAccountsComparisonCtrl', ($scope, $q, ChartFormatterSvc

# calls chart.draw()
$scope.drawTrigger.notify(chartData)

, 500
# Widget is ready: can trigger the "wait for settigns to be ready"
# --------------------------------------
$scope.widgetDeferred.resolve(settingsPromises)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@
.widget-lines-container {
font-size: 11px;
max-height: @impac-widget-accounts-comparison-lines-container-max-height;
margin-bottom: 65px;
overflow: auto;
}

.settings.params-checkboxes {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ <h5 translate>impac.widget.account_comp.account.select</h5>
</div>
<div class="col-md-6">
<div class="input-group">
<select ng-model="movedAccount" ng-options="account.name + ' (' + formatAmount(account) + ')' group by account.classification for account in widget.remainingAccounts" class="form-control" ng-show="widget.hasEditAbility" ng-change="addAccount(movedAccount)"></select>
<select ng-model="movedAccount[0]" ng-options="account.name + ' (' + formatAmount(account) + ')' group by account.classification for account in widget.remainingAccounts" class="form-control" ng-show="widget.hasEditAbility" ng-change="addAccount(movedAccount[0])"></select>
</div>
</div>
</div>
Expand Down Expand Up @@ -85,7 +85,7 @@ <h5 translate>impac.widget.account_comp.account.select</h5>

<div class="row" ng-show="hasAccountsSelected() && !pdfMode">
<div class="col-xs-12 input-group add-account">
<select ng-model="movedAccount" ng-options="account.name + ' (' + formatAmount(account) + ')' group by account.classification for account in widget.remainingAccounts track by account.uid" class="form-control" ng-show="widget.hasDeleteAbility" ng-change="addAccount(movedAccount)" ng-disabled="widget.selectedAccounts.length >= 15 || widget.remainingAccounts.length == 0 || isComparisonMode()">
<select ng-model="movedAccount[0]" ng-options="account.name + ' (' + formatAmount(account) + ')' group by account.classification for account in widget.remainingAccounts track by account.uid" class="form-control" ng-show="widget.hasDeleteAbility" ng-change="addAccount(movedAccount[0])" ng-disabled="widget.selectedAccounts.length >= 15 || widget.remainingAccounts.length == 0 || isComparisonMode()">
<option value="" disabled selected translate>impac.widget.account_comp.account.add</option>
</select>
</div>
Expand Down