mirror of
https://github.com/bingohuang/docker-labs.git
synced 2025-07-14 10:17:26 +08:00
Fix max instance reach alert
This commit is contained in:
parent
bc64fc5c42
commit
7bbb284128
@ -8,15 +8,15 @@
|
|||||||
$scope.instances = [];
|
$scope.instances = [];
|
||||||
$scope.selectedInstance = null;
|
$scope.selectedInstance = null;
|
||||||
|
|
||||||
$scope.showAlert = function(title, content) {
|
$scope.showAlert = function(title, content) {
|
||||||
$mdDialog.show(
|
$mdDialog.show(
|
||||||
$mdDialog.alert()
|
$mdDialog.alert()
|
||||||
.parent(angular.element(document.querySelector('#popupContainer')))
|
.parent(angular.element(document.querySelector('#popupContainer')))
|
||||||
.clickOutsideToClose(true)
|
.clickOutsideToClose(true)
|
||||||
.title(title)
|
.title(title)
|
||||||
.textContent(content)
|
.textContent(content)
|
||||||
.ok('Got it!')
|
.ok('Got it!')
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
$scope.newInstance = function() {
|
$scope.newInstance = function() {
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
<body>
|
<body>
|
||||||
<div layout="column" style="height:100%;" ng-cloak>
|
<div layout="column" style="height:100%;" ng-cloak>
|
||||||
|
|
||||||
<section layout="row" flex>
|
<section id="popupContainer" layout="row" flex>
|
||||||
|
|
||||||
<md-sidenav
|
<md-sidenav
|
||||||
class="md-sidenav-left"
|
class="md-sidenav-left"
|
||||||
@ -47,7 +47,7 @@
|
|||||||
|
|
||||||
<div flex></div>
|
<div flex></div>
|
||||||
</md-content>
|
</md-content>
|
||||||
<md-content id="popupContainer" flex layout-padding ng-repeat="instance in instances" ng-show="instance.name == selectedInstance.name">
|
<md-content flex layout-padding ng-repeat="instance in instances" ng-show="instance.name == selectedInstance.name">
|
||||||
<md-card md-theme="default" md-theme-watch>
|
<md-card md-theme="default" md-theme-watch>
|
||||||
<md-card-title>
|
<md-card-title>
|
||||||
<md-card-title-text>
|
<md-card-title-text>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user