Skip to content

Commit

Permalink
update image flag colour when leased
Browse files Browse the repository at this point in the history
  • Loading branch information
andrew-nowak committed Jan 28, 2025
1 parent 611fe30 commit 2e73b96
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 2e73b96

Please sign in to comment.