Commit 78a8b6bdc9ff75266eccbff4275529a690374073

Authored by ww
1 parent 6077395a

fix: close notify

@@ -4242,7 +4242,7 @@ App.prototype.loadFile = function (id, sameWindow, file, success, force) { @@ -4242,7 +4242,7 @@ App.prototype.loadFile = function (id, sameWindow, file, success, force) {
4242 PageSetupDialog.getFormats = function () { 4242 PageSetupDialog.getFormats = function () {
4243 if (platform === 'phone') { 4243 if (platform === 'phone') {
4244 pageFormat.width = 415 4244 pageFormat.width = 415
4245 - pageFormat.height = 737 4245 + pageFormat.height = 737
4246 return [ 4246 return [
4247 { key: 'iPhone 8', title: 'iPhone 8', format: new mxRectangle(0, 0, 375, 667) }, 4247 { key: 'iPhone 8', title: 'iPhone 8', format: new mxRectangle(0, 0, 375, 667) },
4248 { key: 'iPhone 8 Plus', title: 'iPhone 8 Plus', format: new mxRectangle(0, 0, 415, 737) }, 4248 { key: 'iPhone 8 Plus', title: 'iPhone 8 Plus', format: new mxRectangle(0, 0, 415, 737) },
@@ -5050,7 +5050,7 @@ App.prototype.updateButtonContainer = function () { @@ -5050,7 +5050,7 @@ App.prototype.updateButtonContainer = function () {
5050 this.importButton.setAttribute('id', 'thingskitImportButton'); 5050 this.importButton.setAttribute('id', 'thingskitImportButton');
5051 mxUtils.write(this.importButton, '导入'); 5051 mxUtils.write(this.importButton, '导入');
5052 mxEvent.addListener(this.importButton, 'click', mxUtils.bind(this, function () { 5052 mxEvent.addListener(this.importButton, 'click', mxUtils.bind(this, function () {
5053 - this.currentFile.ui.actions.get('open').funct() 5053 + this.currentFile.ui.actions.get('open').funct()
5054 })); 5054 }));
5055 this.leftContainer.appendChild(this.importButton); 5055 this.leftContainer.appendChild(this.importButton);
5056 5056
@@ -5161,12 +5161,14 @@ App.prototype.updateButtonContainer = function () { @@ -5161,12 +5161,14 @@ App.prototype.updateButtonContainer = function () {
5161 //Fetch notifications 5161 //Fetch notifications
5162 if (urlParams['extAuth'] != '1') //Disable notification with external auth (e.g, Teams app) 5162 if (urlParams['extAuth'] != '1') //Disable notification with external auth (e.g, Teams app)
5163 { 5163 {
5164 - this.fetchAndShowNotification('online', this.mode); 5164 + // TODO thingskit close notify bell
  5165 + // this.fetchAndShowNotification('online', this.mode);
5165 } 5166 }
5166 } 5167 }
5167 else if (urlParams['notif'] != null) //Notif for embed mode 5168 else if (urlParams['notif'] != null) //Notif for embed mode
5168 { 5169 {
5169 - this.fetchAndShowNotification(urlParams['notif']); 5170 + // TODO thingskit close notify bell
  5171 + // this.fetchAndShowNotification(urlParams['notif']);
5170 } 5172 }
5171 } else { 5173 } else {
5172 if (!hasSavePermission()) { 5174 if (!hasSavePermission()) {
@@ -58,7 +58,8 @@ Draw.loadPlugin(function(ui) @@ -58,7 +58,8 @@ Draw.loadPlugin(function(ui)
58 macroData.diagramDisplayName = data.title; 58 macroData.diagramDisplayName = data.title;
59 59
60 //Fetch notifications 60 //Fetch notifications
61 - ui.fetchAndShowNotification('conf'); 61 + // TODO thingskit close notify bell
  62 + // ui.fetchAndShowNotification('conf');
62 } 63 }
63 } 64 }
64 catch (e) 65 catch (e)
@@ -1917,4 +1917,4 @@ table.geProperties tr td { @@ -1917,4 +1917,4 @@ table.geProperties tr td {
1917 1917
1918 .geMaximized #max-button { 1918 .geMaximized #max-button {
1919 display: none; 1919 display: none;
1920 -}  
  1920 +}