Fix lock modal
This commit is contained in:
parent
e1119290df
commit
dba74df532
@ -380,6 +380,7 @@ define([
|
|||||||
};
|
};
|
||||||
|
|
||||||
dialog.getButtons = function (buttons, onClose) {
|
dialog.getButtons = function (buttons, onClose) {
|
||||||
|
if (!buttons) { return; }
|
||||||
if (!Array.isArray(buttons)) { return void console.error('Not an array'); }
|
if (!Array.isArray(buttons)) { return void console.error('Not an array'); }
|
||||||
if (!buttons.length) { return; }
|
if (!buttons.length) { return; }
|
||||||
var navs = [];
|
var navs = [];
|
||||||
|
|||||||
@ -599,10 +599,11 @@ define([
|
|||||||
|
|
||||||
// Add a lock
|
// Add a lock
|
||||||
var isLockedModal = {
|
var isLockedModal = {
|
||||||
content: UI.customModal(h('div', [
|
content: UI.dialog.customModal(h('div.cp-oo-x2tXls', [
|
||||||
h('span.fa.fa-spin.fa-spinner'),
|
h('span.fa.fa-spin.fa-spinner'),
|
||||||
"pewpewpew"
|
h('span', Messages.oo_isLocked)
|
||||||
]))
|
]))
|
||||||
|
};
|
||||||
var handleLock = function (obj, send) {
|
var handleLock = function (obj, send) {
|
||||||
if (content.saveLock) {
|
if (content.saveLock) {
|
||||||
if (!isLockedModal.modal) {
|
if (!isLockedModal.modal) {
|
||||||
@ -633,7 +634,7 @@ define([
|
|||||||
if (!content.saveLock) {
|
if (!content.saveLock) {
|
||||||
if (isLockedModal.modal) {
|
if (isLockedModal.modal) {
|
||||||
isLockedModal.modal.closeModal();
|
isLockedModal.modal.closeModal();
|
||||||
delete isLockedModal.modal();
|
delete isLockedModal.modal;
|
||||||
}
|
}
|
||||||
send({
|
send({
|
||||||
type: "getLock",
|
type: "getLock",
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user