Skip to content

Commit

Permalink
Merge branch 'couchbase/spock' into master
Browse files Browse the repository at this point in the history
- MB-27733: show confirmation dialogs on top of spinner container

Change-Id: Ifec9bdcdfcd7bb73819aea3b4fe254d60b06bf41
  • Loading branch information
pavel-blagodov committed Jan 29, 2018
2 parents 32247d8 + abc9fc5 commit 8ffc17f
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 9 deletions.
Expand Up @@ -6,8 +6,7 @@
value="forestdb"
id="storage_mode_forestdb"
ng-model="mnModel.storageMode"
ng-disabled="!mnIsEnterprise ||
(mnServices && !mnServicesModel.index) ||
ng-disabled="(mnServices && !mnServicesModel.index) ||
(mnPermissions && !mnPermissions.cluster.indexes.write) ||
(mnInitial && mnInitial.storageMode === 'forestdb')">
<label for="storage_mode_forestdb" class="checkbox">
Expand Down
3 changes: 3 additions & 0 deletions priv/public/ui/app/css/cbui-components.css
Expand Up @@ -948,6 +948,9 @@ section.error {
right: 0;
bottom: 0;
}
.z-index-10001 {
z-index: 10001!important;
}
.spinner {
position: absolute;
z-index: 10;
Expand Down
Expand Up @@ -17,6 +17,7 @@
var copy = prepareToCopy(url, currentDdoc);
var promise = mnViewsListService.getDdoc(url).then(function (presentDdoc) {
return $uibModal.open({
windowClass: "z-index-10001",
templateUrl: 'app/mn_admin/mn_indexes/mn_views/confirm_dialogs/mn_views_confirm_override_dialog.html'
}).result.then(copy);
}, copy);
Expand Down
Expand Up @@ -56,6 +56,7 @@
}
if (_.keys(views).length >= 10) {
return $uibModal.open({
windowClass: "z-index-10001",
templateUrl: 'app/mn_admin/mn_indexes/mn_views/confirm_dialogs/mn_views_confirm_limit_dialog.html'
}).result.then(function () {
return createDdoc(presentDdoc);
Expand Down
Expand Up @@ -118,13 +118,15 @@
function publishDdoc(ddoc) {
var url = mnViewsListService.getDdocUrl($state.params.bucket, "_design/" + mnViewsListService.cutOffDesignPrefix(ddoc.meta.id));
var publish = prepareToPublish(url, ddoc);
mnPromiseHelper(vm, mnViewsListService.getDdoc(url))
.getPromise()
.then(function (presentDdoc) {
$uibModal.open({
templateUrl: 'app/mn_admin/mn_indexes/mn_views/confirm_dialogs/mn_views_confirm_override_dialog.html'
}).result.then(publish);
}, publish);
var promise = mnViewsListService.getDdoc(url).then(function () {
return $uibModal.open({
windowClass: "z-index-10001",
templateUrl: 'app/mn_admin/mn_indexes/mn_views/confirm_dialogs/mn_views_confirm_override_dialog.html'
}).result.then(publish);
}, publish);

mnPromiseHelper(vm, promise)
.showGlobalSpinner();
}
function copyToDev(ddoc) {
$uibModal.open({
Expand Down

0 comments on commit 8ffc17f

Please sign in to comment.