mirror of https://gitee.com/bigwinds/arangodb
fixed chaning collection properties in cluster
This commit is contained in:
parent
7bcc7b33f3
commit
34805003fe
|
@ -1,6 +1,6 @@
|
|||
/*jshint browser: true */
|
||||
/*jshint unused: false */
|
||||
/*global window, exports, Backbone, EJS, _, $, templateEngine, arangoHelper, Joi*/
|
||||
/*global window, frontendConfig, exports, Backbone, EJS, _, $, templateEngine, arangoHelper, Joi*/
|
||||
|
||||
(function() {
|
||||
"use strict";
|
||||
|
@ -212,7 +212,12 @@
|
|||
}
|
||||
}.bind(this);
|
||||
|
||||
this.model.renameCollection(newname, callbackRename);
|
||||
if (frontendConfig.isCluster === false) {
|
||||
this.model.renameCollection(newname, callbackRename);
|
||||
}
|
||||
else {
|
||||
callbackRename();
|
||||
}
|
||||
}
|
||||
else if (status === 'unloaded') {
|
||||
if (this.model.get('name') !== newname) {
|
||||
|
@ -227,7 +232,12 @@
|
|||
}
|
||||
}.bind(this);
|
||||
|
||||
this.model.renameCollection(newname, callbackRename2);
|
||||
if (frontendConfig.isCluster === false) {
|
||||
this.model.renameCollection(newname, callbackRename2);
|
||||
}
|
||||
else {
|
||||
callbackRename2();
|
||||
}
|
||||
}
|
||||
else {
|
||||
window.modalView.hide();
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/*jshint browser: true */
|
||||
/*jshint unused: false */
|
||||
/*global arangoHelper, Joi, Backbone, window, templateEngine, $ */
|
||||
/*global frontendConfig, arangoHelper, Joi, Backbone, window, templateEngine, $ */
|
||||
|
||||
(function() {
|
||||
"use strict";
|
||||
|
@ -155,7 +155,12 @@
|
|||
}
|
||||
}.bind(this);
|
||||
|
||||
this.model.renameCollection(newname, callbackRename);
|
||||
if (frontendConfig.isCluster === false) {
|
||||
this.model.renameCollection(newname, callbackRename);
|
||||
}
|
||||
else {
|
||||
callbackRename();
|
||||
}
|
||||
}
|
||||
else if (status === 'unloaded') {
|
||||
if (this.model.get('name') !== newname) {
|
||||
|
@ -170,7 +175,12 @@
|
|||
}
|
||||
}.bind(this);
|
||||
|
||||
this.model.renameCollection(newname, callbackRename2);
|
||||
if (frontendConfig.isCluster === false) {
|
||||
this.model.renameCollection(newname, callbackRename2);
|
||||
}
|
||||
else {
|
||||
callbackRename2();
|
||||
}
|
||||
}
|
||||
else {
|
||||
window.modalView.hide();
|
||||
|
|
Loading…
Reference in New Issue