Skip to content

Commit

Permalink
Merge pull request #4413 from guardian/an/update-flag-colour-when-leased
Browse files Browse the repository at this point in the history
update image flag colour when leased
  • Loading branch information
andrew-nowak authored Jan 29, 2025
2 parents 611fe30 + 2e73b96 commit b3bdbfe
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions kahuna/public/js/preview/image.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ image.controller('uiPreviewImageCtrl', [
ctrl.states = imageService(updatedImage).states;
ctrl.image = updatedImage;
ctrl.flagState = ctrl.states.costState;
ctrl.hasActiveAllowLease = ctrl.image.data.leases.data.leases.find(lease => lease.active && lease.access === 'allow-use');
ctrl.imageAsArray = [updatedImage];
};

Expand Down

0 comments on commit b3bdbfe

Please sign in to comment.