1
0
mirror of https://github.com/quay/quay.git synced 2025-04-18 10:44:06 +03:00

ui: removing bootbox (#3415)

removing bootbox
This commit is contained in:
Brandon Caton 2024-11-22 11:19:26 -05:00 committed by GitHub
parent 7426137de4
commit 961e7c40ec
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
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>'
});
};
}
};
});