1
0
mirror of https://github.com/quay/quay.git synced 2026-01-26 06:21:37 +03:00

[redhat-3.9] ui: removing bootbox (#3505)

removing bootbox

Co-authored-by: bcaton <bcaton@redhat.com>
This commit is contained in:
OpenShift Cherrypick Robot
2024-12-12 20:52:53 +01:00
committed by GitHub
parent dd155bc2a4
commit 02d6f64ee7
2 changed files with 3 additions and 10 deletions

View File

@@ -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 }}"
@@ -17,4 +17,4 @@
<span class="value">{{ label.value }}</span>
</span>
</a>
</span>
</span>

View File

@@ -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>'
});
};
}
};
});