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