Skip to content

Commit

Permalink
ui: removing bootbox (quay#3415)
Browse files Browse the repository at this point in the history
removing bootbox
  • Loading branch information
bcaton85 authored Nov 22, 2024
1 parent 7426137 commit 961e7c4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 deletions.
6 changes: 3 additions & 3 deletions static/directives/label-view.html
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<span class="label-view-element">
<a class="label-view-element-link" ng-click="viewLabelValue()" ng-if="!isUrl(label.value)">
<span ng-if="!isUrl(label.value)">
<span class="kind" ng-show="getKind(label)">{{ getKind(label) }}</span>
<span class="label-value">
<span class="key">{{ label.key }}</span>
<span class="equals">=</span>
<span class="value">{{ label.value }}</span>
</span>
</a>
</span>
<a class="label-view-element-link is-link"
ng-if="isUrl(label.value)"
ng-href="{{ label.value }}"
Expand All @@ -17,4 +17,4 @@
<span class="value">{{ label.value }}</span>
</span>
</a>
</span>
</span>
7 changes: 0 additions & 7 deletions static/js/directives/ui/label-view.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,6 @@ angular.module('quay').directive('labelView', function () {
return value && value.indexOf('https:') == 0;
};

$scope.viewLabelValue = function() {
bootbox.alert({
size: "small",
title: $scope.label.key,
message: '<pre>' + $sanitize($scope.label.value.replace('<', '&lt;').replace('>', '&gt;')) + '</pre>'
});
};
}
};
});

0 comments on commit 961e7c4

Please sign in to comment.